:root {
  --navy: #0D1F3C;
  --blue: #1A3A6B;
  --accent: #E63946;
  --sky: #2176AE;
  --light: #F4F6FA;
  --white: #FFFFFF;
  --muted: #6B7A99;
  --border: #D6DCE8;
  --dark-bg: #0A1628;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand .logo-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand .logo-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-brand span {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--sky);
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 110px 5vw 80px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

/* geometric background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(33, 118, 174, 0.15);
  border: 1px solid rgba(33, 118, 174, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--sky);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-eyebrow span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--sky);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1a6494;
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* phone mockup */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrapper {
  position: relative;
  width: 280px;
}

.phone-shell {
  background: #111;
  border-radius: 40px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(33, 118, 174, 0.08);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19;
  background: #1A3A6B;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.phone-image-placeholder .ph-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-image-placeholder p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.5;
}

.phone-image-placeholder .ph-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* insert actual image here — drop in a real <img> if available */
.hero-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 10px;
  background: #111;
  border-radius: 10px;
  z-index: 10;
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  background: rgba(33, 118, 174, 0.25);
  filter: blur(30px);
  border-radius: 50%;
}

/* ── SECTION GENERIC ─────────────────────────────────── */
section {
  padding: 100px 5vw;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
}

/* ── ABOUT ────────────────────────────────────────────── */
.about {
  background: var(--light);
  padding: 100px 5vw;
}

.about-inner {
  max-width: 900px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .about-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-icon svg {
  width: 18px;
  height: 18px;
}

.pillar h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* about-visual removed */

/* ── USER GUIDE ─────────────────────────────────────── */
.user-guide {
  background: var(--white);
}

.user-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 56px;
}

.guide-image-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--light);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-image-box img {
  width: 100%;
  display: block;
}

.guide-image-box .placeholder-msg {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
}

.guide-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.guide-step.active .step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ARCHITECTURE ────────────────────────────────────── */
.architecture {
  background: var(--dark-bg);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.architecture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.architecture .section-title {
  color: var(--white);
}

.architecture .section-body {
  color: rgba(255, 255, 255, 0.5);
}

.architecture .section-label {
  color: var(--sky);
}

.arch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 56px;
  position: relative;
  z-index: 2;
}

.arch-image-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-image-box img {
  width: 100%;
  display: block;
}

.arch-image-box .placeholder-msg {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 40px;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.flow-node:last-child {
  border-bottom: none;
}

.flow-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg {
  width: 18px;
  height: 18px;
}

.flow-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.flow-text p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.flow-arrow {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin-left: 19px;
}

/* ── TECH STACK ─────────────────────────────────────── */
.tech-stack {
  background: var(--light);
}

.tech-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tech-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
  transition: border-color 0.2s;
}

.tech-card:hover {
  border-color: var(--sky);
}

.tech-card .tc-layer {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}

.tech-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.tech-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.tech-card .tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tc-tag {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--navy);
  padding: 3px 8px;
  font-weight: 500;
}

/* ── PARTNERS ───────────────────────────────────────── */
.partners {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 64px 5vw;
}

.partners-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 40px;
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.partner-logo-box {
  width: 140px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 12px 16px;
}

.partner-logo-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

.partner-logo-box .p-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.partner-logo p {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

/* ── CTA BANNER ─────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 80px 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.cta-banner .section-label {
  color: rgba(255, 255, 255, 0.4);
}

.cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 560px;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-banner .btn-primary {
  font-size: 1rem;
  padding: 16px 36px;
}

.admin-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 14px;
  letter-spacing: 0.03em;
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .f-brand {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
}

footer .f-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 2px;
}

footer .f-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {

  .hero,
  .user-guide-grid,
  .arch-layout,
  .tech-header {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-right {
    order: -1;
  }

  .phone-wrapper {
    width: 220px;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partners-row {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* ── SCROLL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}