/* =========================================================
   Premium Design System + Dark Mode (Token-driven)
   ========================================================= */

:root{
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";

  /* Light theme tokens */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbff;

  --text: rgba(15, 23, 42, 0.92);
  --muted: rgba(15, 23, 42, 0.68);

  --border: rgba(15, 23, 42, 0.10);

  --primary: #1a237e;
  --primary-2: #283593;
  --primary-3: #3949ab;

  --success: #16a34a;

  --shadow-sm: 0 10px 24px rgba(2,6,23,.06);
  --shadow-md: 0 16px 40px rgba(2,6,23,.10);
  --shadow-lg: 0 22px 60px rgba(2,6,23,.14);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;

  --section-py: 96px;
  --section-py-sm: 64px;

  --nav-height: 76px;

  --focus: rgba(26,35,126,.25);
}

/* Dark mode tokens */
html[data-theme="dark"]{
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #111a2e;
  --surface-2: #0f1a33;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --border: rgba(255,255,255,0.10);

  --primary: #6d7cff;      /* brighter primary in dark */
  --primary-2: #7b88ff;
  --primary-3: #94a3ff;

  --shadow-sm: 0 10px 24px rgba(0,0,0,.25);
  --shadow-md: 0 18px 44px rgba(0,0,0,.35);
  --shadow-lg: 0 26px 72px rgba(0,0,0,.45);

  --focus: rgba(148,163,255,.35);
}

*{ box-sizing:border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  padding-top: var(--nav-height);
}

/* Section spacing */
.section{
  padding: var(--section-py) 0;
}
@media (max-width: 768px){
  .section{ padding: var(--section-py-sm) 0; }
}

.section-soft{
  background: var(--bg-soft);
}

.section-head .section-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-subtitle{
  color: var(--muted);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  z-index:9999;
  background:#000;
  color:#fff;
  padding:8px 12px;
  border-radius: 10px;
}
.skip-link:focus{ left:10px; }

/* Focus */
a:focus, button:focus, input:focus, textarea:focus{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* =========================================================
   Navbar (Premium + Dark mode white text)
   ========================================================= */

.agd-navbar{
  height: var(--nav-height);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
html[data-theme="dark"] .agd-navbar{
  background: rgba(17,26,46,.65);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.agd-navbar.nav-scrolled{
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.brand-main-logo{
  max-height: 55px;
  width:auto;
}

/* Nav link styles */
.navbar .nav-link{
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 12px;
  transition: background-color .2s ease, color .2s ease;
  color: rgba(15,23,42,.72);
}
html[data-theme="dark"] .navbar .nav-link{
  color: rgba(255,255,255,.82); /* dark mode nav text white */
}
.navbar .nav-link:hover{
  background: rgba(26,35,126,.08);
  color: var(--primary);
}
html[data-theme="dark"] .navbar .nav-link:hover{
  background: rgba(109,124,255,.12);
  color: rgba(255,255,255,.96);
}
.navbar .nav-link.active{
  background: rgba(26,35,126,.12);
  color: var(--primary);
}
html[data-theme="dark"] .navbar .nav-link.active{
  background: rgba(109,124,255,.18);
  color: rgba(255,255,255,.96);
}

.nav-login-btn{
  border-radius: 999px;
  font-weight: 800;
}

/* Icon button */
.btn-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.6);
  color: rgba(15,23,42,.82);
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn-icon:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.85);
}
html[data-theme="dark"] .btn-icon{
  background: rgba(17,26,46,.7);
  color: rgba(255,255,255,.90);
}
html[data-theme="dark"] .btn-icon:hover{
  background: rgba(17,26,46,.92);
}

.navbar-toggler{
  border: 1px solid var(--border);
  border-radius: 14px;
}
html[data-theme="dark"] .navbar-toggler{
  background: rgba(17,26,46,.7);
}

/* =========================================================
   Hero (Premium depth + pattern)
   ========================================================= */

.hero{
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display:flex;
  align-items:center;
  overflow:hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--primary-3));
}
.hero-bg-pattern{
  position:absolute;
  inset: -20%;
  opacity: .18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 35%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(circle at 40% 75%, rgba(255,255,255,.14), transparent 40%),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, auto, auto, 58px 58px, 58px 58px;
  filter: blur(.2px);
}
.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.38));
}
.hero-inner{
  position: relative;
  padding: 84px 0 64px 0;
}
.hero-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
}
.hero-title{
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: rgba(255,255,255,.96);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.hero-subtitle{
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  max-width: 70ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.btn-ghost{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.94);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.98);
}

.chip{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

/* Hero premium card */
.hero-card{
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 26px 70px rgba(0,0,0,.25);
  padding: 22px 22px;
  color: rgba(255,255,255,.92);
}
.hero-card-badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 800;
}
.hero-card-title{
  margin-top: 14px;
  font-weight: 900;
  font-size: 1.25rem;
}
.hero-card-sub{
  margin-top: 6px;
  color: rgba(255,255,255,.78);
}
.hero-card-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-card-item:first-child{ border-top: 0; padding-top: 0; }
.hci{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.hc-title{ font-weight: 900; }
.hc-sub{ color: rgba(255,255,255,.78); font-weight: 600; }

.hero-card-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  font-weight: 900;
  color: rgba(255,255,255,.92);
}
.hero-card-link:hover{ color: rgba(255,255,255,.98); }

/* Scroll indicator */
.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color: rgba(255,255,255,.9);
  text-decoration:none;
}
.scroll-indicator .scroll-text{
  font-size:.9rem;
  font-weight:800;
}
.scroll-indicator i{
  animation: agd-bounce 1.6s infinite;
}
@keyframes agd-bounce{
  0%, 100%{ transform: translateY(0); opacity: .85; }
  50%{ transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   Cards / Components (Premium)
   ========================================================= */

/* Brand cards */
.brand-card{
  display:block;
  text-decoration:none;
  text-align:center;
  padding: 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}
.brand-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.brand-logo{
  width: 100%;
  height: 110px;
  object-fit: contain;
}
.brand-label{
  margin-top: 10px;
  font-weight: 900;
  color: var(--text);
  font-size: .95rem;
}

/* Metrics */
.metric-card{
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px;
  height: 100%;
}
.metric-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(26,35,126,.10);
  color: var(--primary);
  margin-bottom: 12px;
}
html[data-theme="dark"] .metric-icon{
  background: rgba(109,124,255,.14);
}
.metric-value{
  font-weight: 900;
  font-size: 1.15rem;
}
.metric-label{
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
}
.trust-strip{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.trust-item{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.trust-item i{ color: var(--success); }

/* Service cards */
.service-card{
  text-decoration:none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  overflow: hidden;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26,35,126,.22);
}
html[data-theme="dark"] .service-card:hover{
  border-color: rgba(109,124,255,.30);
}
.service-icon{
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(26,35,126,.10);
  color: var(--primary);
  font-size: 30px;
}
html[data-theme="dark"] .service-icon{
  background: rgba(109,124,255,.14);
}
.service-meta{
  font-weight: 800;
  color: var(--muted);
  font-size: .92rem;
}
.service-cta{
  font-weight: 900;
  color: var(--primary);
}
.service-arrow{
  transition: transform .2s ease;
}
.service-card:hover .service-arrow{
  transform: translateX(4px);
}

/* Value card */
.value-card{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
}
.value-card h3{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.value-item{
  display:flex;
  align-items:flex-start;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
}
.value-item i{
  margin-top: 3px;
  color: var(--success);
}

/* How cards */
.how-card{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  height: 100%;
  position: relative;
}
.how-step{
  position:absolute;
  top: 16px;
  right: 16px;
  font-weight: 900;
  color: var(--muted);
}
.how-icon{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(26,35,126,.10);
  color: var(--primary);
  font-size: 20px;
}
html[data-theme="dark"] .how-icon{
  background: rgba(109,124,255,.14);
}
.how-title{
  margin-top: 14px;
  font-weight: 900;
  font-size: 1.1rem;
}
.how-text{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.7;
}

/* Testimonials */
.quote-card{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
  height: 100%;
  position: relative;
}
.quote-mark{
  position:absolute;
  top: 10px;
  left: 14px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(26,35,126,.18);
  line-height: 1;
}
html[data-theme="dark"] .quote-mark{
  color: rgba(109,124,255,.20);
}
.quote-text{
  margin-top: 22px;
  color: var(--text);
  font-weight: 650;
  line-height: 1.8;
}
.quote-footer{
  display:flex;
  align-items:center;
  gap: 12px;
}
.quote-avatar{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(26,35,126,.10);
  color: var(--primary);
  border: 1px solid var(--border);
}
html[data-theme="dark"] .quote-avatar{
  background: rgba(109,124,255,.14);
}
.quote-name{
  font-weight: 900;
}
.quote-role{
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
}

/* CTA strip */
.cta-strip{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(26,35,126,.08), rgba(26,35,126,.02));
  box-shadow: var(--shadow-sm);
  padding: 18px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
html[data-theme="dark"] .cta-strip{
  background: linear-gradient(135deg, rgba(109,124,255,.16), rgba(109,124,255,.06));
}
.cta-title{
  font-weight: 900;
  font-size: 1.05rem;
}
.cta-sub{
  color: var(--muted);
  font-weight: 700;
}

/* About section (invert) */
.about-section{
  background: linear-gradient(135deg, #0b102b, #111a4d, #0b102b);
  color: rgba(255,255,255,.92);
}
.text-invert{ color: rgba(255,255,255,.95) !important; }
.text-invert-soft{ color: rgba(255,255,255,.74) !important; }

.about-card{
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  padding: 22px 22px;
}
.about-card p{
  color: rgba(255,255,255,.82);
  line-height: 1.75;
  font-weight: 550;
}
.about-mini{
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  padding: 18px 18px;
}
.mini-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}
.mini-title{
  font-weight: 900;
  color: rgba(255,255,255,.95);
}
.mini-sub{
  color: rgba(255,255,255,.74);
  font-weight: 700;
}

/* Ghost button on invert background */
.btn-ghost-invert{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.94);
  border-radius: 14px;
}
.btn-ghost-invert:hover{
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.98);
}

/* Contact */
.premium-card{
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.contact-box{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.contact-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(26,35,126,.10);
  color: var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border);
}
html[data-theme="dark"] .contact-icon{
  background: rgba(109,124,255,.14);
}
.contact-title{
  font-weight: 900;
  color: var(--text);
}
.contact-text{
  color: var(--muted);
  font-weight: 700;
}
.contact-note{
  color: var(--muted);
  font-weight: 700;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--surface-2);
}

/* Forms */
.form-label{
  font-weight: 800;
  color: var(--text);
}
.form-control{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.form-control:focus{
  border-color: rgba(26,35,126,.35);
  box-shadow: none;
}
html[data-theme="dark"] .form-control:focus{
  border-color: rgba(109,124,255,.40);
}

/* Footer */
.agd-footer{
  background: #0b1220;
  color: rgba(255,255,255,.90);
}
.footer-title{
  font-weight: 900;
  margin-bottom: 12px;
}
.footer-text{ color: rgba(255,255,255,.70); }
.footer-links, .footer-contact{
  list-style:none;
  padding:0;
  margin:0;
}
.footer-links li{ margin: 8px 0; }
.footer-links a{
  color: rgba(255,255,255,.72);
  text-decoration:none;
  font-weight: 700;
}
.footer-links a:hover{ color: #ffffff; }
.footer-contact li{
  margin: 8px 0;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}
.footer-hr{ border-color: rgba(255,255,255,.12); }
.footer-muted{ color: rgba(255,255,255,.62); font-weight: 700; }
.footer-strong{ color: rgba(255,255,255,.92); font-weight: 900; }

/* Social links */
.social-link{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  transition: transform .15s ease, background .15s ease;
}
.social-link:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  color:#fff;
}

/* Go top (FIXED: alignment, border, hover, dark mode consistency) */
.goTopBtn{
  display: none;
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;

  width: 48px;
  height: 48px;

  /* Perfect centering */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  /* Premium look */
  border: 1px solid rgba(0,0,0,.08);
  background: var(--primary);
  color: #fff;

  box-shadow: 0 18px 40px rgba(2,6,23,.22);
  cursor: pointer;

  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, visibility .2s ease;
}

/* Dark mode border/shadow tuning */
html[data-theme="dark"] .goTopBtn{
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 46px rgba(0,0,0,.55);
}

/* Icon sizing consistency */
.goTopBtn i{
  font-size: 16px;
  line-height: 1;
}

/* Hover */
.goTopBtn:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(2,6,23,.28);
}

/* Active (click) */
.goTopBtn:active{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2,6,23,.20);
}

/* Optional: focus visible */
.goTopBtn:focus{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}


/* =========================================================
   Motion (Premium + Reduced motion support)
   ========================================================= */

.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* If user prefers reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .scroll-indicator i{ animation: none; }
}
