:root {
  --primary: #1565c0;
  --primary-2: #00a7c7;
  --secondary: #00b894;
  --danger: #ef5350;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --ink: #102033;
  --muted: #65758b;
  --line: rgba(21, 101, 192, 0.14);
  --shadow-1: 0 10px 30px rgba(24, 51, 91, 0.10);
  --shadow-2: 0 24px 70px rgba(19, 48, 87, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 167, 199, 0.12), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(21, 101, 192, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 38%, #f6faff 100%);
  overflow-x: hidden;
}

a { color: inherit; }
a:hover { color: inherit; }

.container-wide {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 18px 0 auto 0;
  z-index: 999;
  pointer-events: none;
  transition: 0.3s ease;
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  line-height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: 0 16px 50px rgba(13, 40, 77, 0.10);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  transition: all 0.3s ease;
}

.site-header.scrolled .nav-shell {
  height: 62px;
  line-height: 62px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 40px rgba(13, 40, 77, 0.16);
}

.brand-lockup {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-size: 1.24rem !important;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink) !important;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.28);
}

.nav-links li a {
  color: #26394f;
  font-weight: 700;
  border-radius: 999px;
  line-height: 42px;
  margin: 15px 2px;
  padding: 0 16px;
  transition: all 0.22s ease;
}

.site-header.scrolled .nav-links li a { margin-top: 10px; }
.nav-links li a:hover { background: rgba(21, 101, 192, 0.08); color: var(--primary); }
.nav-links li a.nav-cta { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 24px rgba(21, 101, 192, 0.25); }
.nav-links li a.nav-cta:hover { transform: translateY(-1px); }
.sidenav-trigger { color: var(--primary); }
.sidenav { border-radius: 0 26px 26px 0; }
.sidenav-header { padding: 28px 24px 18px; display: flex; align-items: center; gap: 12px; }
.sidenav li > a { font-weight: 700; color: var(--ink); }
.sidenav li > a > i.material-icons-round { color: var(--primary); }

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 21, 47, 0.94), rgba(11, 69, 116, 0.86)),
    radial-gradient(circle at 70% 30%, rgba(0, 184, 148, 0.45), transparent 32%),
    linear-gradient(135deg, #0b1630 0%, #155ea8 52%, #00a7c7 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0, transparent 72%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.72;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-one { width: 360px; height: 360px; background: rgba(0, 184, 148, 0.42); top: 13%; right: 10%; }
.hero-orb-two { width: 220px; height: 220px; background: rgba(99, 179, 237, 0.42); bottom: 12%; left: 9%; animation-delay: -2s; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-badge {
  color: #e6fbff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-section h1 {
  max-width: 940px;
  margin: 26px auto 20px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-wrap: balance;
}

.hero-lead {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  color: rgba(232, 249, 255, 0.86);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-bottom: 30px; }
.primary-btn, .submit-btn {
  border-radius: 999px;
  text-transform: none;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 38px rgba(0, 137, 180, 0.30);
}
.primary-btn:hover, .submit-btn:hover { box-shadow: 0 20px 46px rgba(0, 137, 180, 0.38); transform: translateY(-2px); }
.glass-btn {
  border-radius: 999px;
  text-transform: none;
  font-weight: 900;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(10px);
}
.glass-btn:hover { background: rgba(255,255,255,0.20); }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.88); font-weight: 700; }
.hero-trust i { font-size: 1.15rem; color: #7df7de; }
.scroll-indicator { position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%); color: #fff; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,0.13); animation: bounce 1.8s infinite; }
.scroll-indicator i { font-size: 2.2rem; }

/* Sections */
.section-block { position: relative; padding: 110px 0; }
.section-heading { width: min(820px, 100%); margin: 0 auto 58px; }
.section-heading.compact { margin-bottom: 32px; }
.eyebrow { color: var(--primary); background: rgba(21,101,192,0.09); }
.section-heading h2, .section-heading h3 {
  margin: 18px 0 14px;
  font-weight: 900;
  letter-spacing: -0.055em;
  color: var(--ink);
  text-wrap: balance;
}
.section-heading h2 { font-size: clamp(2.15rem, 5vw, 4rem); }
.section-heading h3 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); }
.section-heading p { color: var(--muted); font-size: 1.1rem; line-height: 1.75; margin: 0 auto; }

/* Platform cards */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.platform-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(21, 101, 192, 0.10);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-2); border-color: rgba(21, 101, 192, 0.25); }
.card-glow { position: absolute; inset: auto -40px -70px auto; width: 180px; height: 180px; border-radius: 999px; opacity: 0.18; filter: blur(8px); }
.card-glow.blue { background: #1565c0; }
.card-glow.red { background: #ef5350; }
.card-glow.cyan { background: #00a7c7; }
.card-glow.green { background: #00b894; }
.icon-chip, .panel-title-icon, .service-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  color: #fff;
  font-size: 1.55rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 32px rgba(21, 101, 192, 0.24);
}
.icon-chip.red { background: linear-gradient(135deg, #d84343, #ff8a80); }
.icon-chip.cyan { background: linear-gradient(135deg, #008ca8, #00d4ff); }
.icon-chip.green, .panel-title-icon.green { background: linear-gradient(135deg, #008c72, #00d6a6); }
.platform-card h3 { margin: 26px 0 14px; font-size: 1.38rem; font-weight: 900; letter-spacing: -0.04em; }
.platform-card p { color: var(--muted); line-height: 1.68; margin: 0; }
.card-link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 900; }
.card-link i { font-size: 1.1rem; }

/* Panels */
.opendsi-section, .about-section { background: linear-gradient(180deg, rgba(245,248,255,0.7), rgba(255,255,255,0.35)); }
.opendsi-row, .about-row { margin-bottom: 0; }
.material-panel {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(21, 101, 192, 0.10);
  box-shadow: var(--shadow-1);
}
.panel-accent { position: absolute; top: -50px; right: -55px; width: 170px; height: 170px; border-radius: 999px; opacity: 0.10; }
.panel-accent.blue { background: var(--primary); }
.panel-accent.green { background: var(--secondary); }
.feature-panel h3, .about-card h3 { margin: 22px 0 16px; font-size: 1.72rem; font-weight: 900; letter-spacing: -0.04em; }
.feature-panel p, .about-card p { color: var(--muted); line-height: 1.75; }
.check-list { margin: 22px 0 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin: 13px 0; color: #33445a; font-weight: 600; }
.check-list i { color: var(--secondary); font-size: 1.25rem; margin-top: 1px; }
.feature-stack { display: grid; gap: 18px; }
.feature-stack > div { padding: 18px; border-radius: var(--radius-md); background: rgba(21,101,192,0.055); border: 1px solid rgba(21,101,192,0.08); }
.feature-stack h4 { margin: 0 0 8px; color: var(--primary); font-size: 1.08rem; font-weight: 900; letter-spacing: -0.025em; }
.feature-stack p { margin: 0; }
.components-panel { margin-top: 32px; }
.components-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.component-card { padding: 20px; border-radius: 22px; background: linear-gradient(180deg, #f7fbff, #ffffff); border: 1px solid var(--line); transition: 0.22s ease; }
.component-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 40, 77, 0.10); }
.component-card i { color: var(--primary); font-size: 1.35rem; margin-bottom: 12px; }
.component-card strong { display: block; font-weight: 900; margin-bottom: 7px; }
.component-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }

/* Services */
.services-section { background: #fff; }
.service-strip { width: min(920px, 100%); margin: 0 auto; display: grid; gap: 18px; padding: 18px; border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(21,101,192,0.09), rgba(0,184,148,0.10)); border: 1px solid rgba(21,101,192,0.10); }
.service-item { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 26px; background: rgba(255,255,255,0.84); box-shadow: 0 8px 24px rgba(13,40,77,0.08); }
.service-icon { flex: 0 0 auto; }
.service-item h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.035em; }
.service-item p { margin: 0; color: var(--muted); line-height: 1.7; }

/* About */
.about-card { min-height: 420px; }
.contact-lines { display: grid; gap: 18px; margin-top: 24px; }
.contact-lines > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: rgba(21,101,192,0.055); }
.contact-lines i { color: var(--primary); }
.contact-lines strong { display: block; color: var(--ink); margin-bottom: 5px; }
.contact-lines span { color: var(--muted); line-height: 1.55; }

/* Contact */
.contact-section { background: linear-gradient(180deg, #ffffff, #f5faff); }
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; width: min(1000px, 100%); margin: 0 auto; align-items: stretch; }
.contact-aside { position: relative; overflow: hidden; padding: 38px; border-radius: var(--radius-xl); color: #fff; background: linear-gradient(135deg, #0d2b55, #1565c0 58%, #00a7c7); box-shadow: var(--shadow-2); }
.contact-aside::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 999px; right: -70px; bottom: -70px; background: rgba(255,255,255,0.14); }
.contact-aside h3 { margin: 0 0 18px; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1.05; }
.contact-aside p { color: rgba(255,255,255,0.82); line-height: 1.75; margin-bottom: 28px; }
.quick-contact { display: flex; gap: 12px; align-items: center; margin: 14px 0; font-weight: 800; }
.quick-contact i { color: #8fffea; }
.contact-form.material-panel { padding: 34px 34px 28px; }
.input-field .prefix { color: var(--primary); }
.input-field .prefix.active { color: var(--primary-2); }
.input-field input, .input-field textarea.materialize-textarea { color: var(--ink); border-bottom-color: rgba(21,101,192,0.22) !important; }
.input-field input:focus, .input-field textarea.materialize-textarea:focus { border-bottom-color: var(--primary) !important; box-shadow: 0 1px 0 0 var(--primary) !important; }
.input-field label { color: var(--muted); font-weight: 700; }
.input-field input:focus + label, .input-field textarea:focus + label { color: var(--primary) !important; }
.submit-btn { width: 100%; margin-top: 12px; }

/* Footer & floating */
.site-footer { padding: 54px 0 26px; color: #fff; background: radial-gradient(circle at 15% 0%, rgba(0,184,148,0.22), transparent 30%), linear-gradient(135deg, #071426, #123b70 68%, #006b85); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer h3 { margin: 0 0 8px; font-size: 1.8rem; font-weight: 900; letter-spacing: -0.045em; }
.site-footer p { margin: 0; color: rgba(255,255,255,0.74); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; transition: 0.2s ease; }
.footer-socials a:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.footer-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); text-align: center; }
.floating-action { position: fixed; right: 24px; z-index: 950; display: grid; place-items: center; width: 58px; height: 58px; border: none; border-radius: 999px; color: #fff; cursor: pointer; box-shadow: 0 18px 40px rgba(0,0,0,0.18); transition: 0.2s ease; }
.floating-action:hover { transform: translateY(-3px) scale(1.03); color: #fff; }
.floating-action i { font-size: 1.65rem; }
.whatsapp { bottom: 96px; background: linear-gradient(135deg, #1ebc61, #00d084); }
.to-top { bottom: 26px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); opacity: 0; pointer-events: none; }
.to-top.visible { opacity: 1; pointer-events: auto; }

/* Animations */
.animate-in { opacity: 0; transform: translateY(20px); animation: rise 0.85s cubic-bezier(.2,.8,.2,1) forwards; }
.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.20s; }
.delay-3 { animation-delay: 0.30s; }
.delay-4 { animation-delay: 0.40s; }
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(18px) scale(1.04); } }
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-9px); } }

/* Responsive */
@media (max-width: 1100px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .components-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .site-header { top: 12px; }
  .brand-lockup { font-size: 1.05rem !important; }
  .nav-shell { height: 64px; line-height: 64px; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-card { min-height: unset; margin-bottom: 20px; }
}

@media (max-width: 640px) {
  .container-wide { width: min(100% - 24px, 1180px); }
  .site-header { inset: 10px 0 auto; }
  .nav-shell { width: calc(100% - 20px); border-radius: 24px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 14px; }
  .hero-section { padding: 132px 0 86px; }
  .hero-section h1 { letter-spacing: -0.065em; }
  .hero-actions .btn-large { width: 100%; }
  .section-block { padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }
  .platform-grid, .components-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: auto; }
  .material-panel, .contact-aside { padding: 26px; border-radius: 26px; }
  .service-item { flex-direction: column; align-items: flex-start; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .floating-action { right: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
