/* ===========================
   CERTAXIS — DESIGN TOKENS
   Palette: deep navy base, teal accent (#00E5C8),
   off-white text, slate greys.
   Type: Space Grotesk (body/UI) + Space Mono (data/labels)
=========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #050F1E;
  --navy-mid: #0C1E35;
  --navy-card:#0F2440;
  --teal:     #00E5C8;
  --teal-dim: rgba(0,229,200,0.12);
  --teal-glow:rgba(0,229,200,0.25);
  --white:    #F0F4FA;
  --white-dim:#9AABBD;
  --border:   rgba(255,255,255,0.08);
  --ff-main:  'Space Grotesk', sans-serif;
  --ff-mono:  'Space Mono', monospace;
  --radius:   10px;
  --max-w:    1160px;
  --ease:     cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-main);
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===========================
   NAV
=========================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,15,30,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  font-family: var(--ff-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.logo span { color: var(--teal); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--white-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: 0.3s var(--ease);
}

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 16px 24px; font-size: 0.95rem; font-weight: 500;
  color: var(--white-dim);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--white); background: var(--teal-dim); }
.mobile-menu.open { display: flex; }

/* ===========================
   BUTTONS
=========================== */

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-family: var(--ff-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 7px;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--ff-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost-dark {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: var(--ff-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 7px;
  border: 1.5px solid var(--navy-mid);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost-dark:hover { background: var(--teal-dim); border-color: var(--teal); color: var(--navy-mid); }

/* ===========================
   HERO
=========================== */

.hero {
  padding: 130px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-content h1 .accent { color: var(--teal); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Certificate diagram */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative; height: 380px;
}

.cert-diagram {
  position: relative; width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
}

.cert-ring {
  position: absolute; border-radius: 50%; border-style: solid; border-color: transparent;
  animation: spin linear infinite;
}
.ring-1 {
  width: 240px; height: 240px;
  border-width: 1.5px;
  border-top-color: var(--teal);
  border-right-color: rgba(0,229,200,0.3);
  animation-duration: 18s;
}
.ring-2 {
  width: 180px; height: 180px;
  border-width: 1.5px;
  border-bottom-color: var(--teal);
  border-left-color: rgba(0,229,200,0.2);
  animation-duration: 12s; animation-direction: reverse;
}
.ring-3 {
  width: 120px; height: 120px;
  border-width: 1px;
  border-top-color: rgba(0,229,200,0.4);
  animation-duration: 8s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cert-core {
  width: 64px; height: 64px;
  background: var(--teal-dim);
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 0 32px var(--teal-glow);
}

.cert-labels { position: absolute; width: 100%; height: 100%; }
.cert-label {
  position: absolute;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--teal);
  background: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 20px;
  white-space: nowrap;
}
.l1 { top: 10%; left: 58%; }
.l2 { top: 60%; left: 70%; }
.l3 { top: 75%; left: 10%; }
.l4 { top: 12%; left: 5%; }

/* Stats bar */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--navy-mid);
  overflow: hidden;
}
.stat {
  flex: 1; padding: 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num {
  font-family: var(--ff-mono);
  font-size: 2rem; font-weight: 700;
  color: var(--teal); line-height: 1;
}
.stat-unit { font-size: 1rem; }
.stat-label { font-size: 0.78rem; color: var(--white-dim); line-height: 1.35; }
.stat-div { width: 1px; background: var(--border); align-self: stretch; }

/* ===========================
   TRUST
=========================== */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.trust-label {
  font-size: 0.78rem; font-family: var(--ff-mono);
  color: var(--white-dim); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 18px;
}
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust-pill {
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem; color: var(--white-dim);
  background: var(--navy-mid);
}

/* ===========================
   SECTION COMMONS
=========================== */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-eye {
  font-family: var(--ff-mono);
  font-size: 0.72rem; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--white-dim);
  max-width: 540px; margin: 0 auto;
}

/* ===========================
   PLATFORM FEATURES
=========================== */

.platform { background: var(--navy); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(0,229,200,0.35);
  transform: translateY(-3px);
}
.feature-icon { margin-bottom: 18px; }
.feature-card h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 10px;
}
.feature-card p { font-size: 0.875rem; color: var(--white-dim); line-height: 1.65; }

/* ===========================
   SOLUTIONS
=========================== */

.solutions { background: var(--navy-mid); }

.solutions-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.solution-card {
  border-radius: 12px; padding: 44px 40px;
}
.solution-saas {
  background: var(--teal);
  color: var(--navy);
}
.solution-reseller {
  background: var(--navy-card);
  border: 1px solid var(--border);
  color: var(--white);
}

.solution-tag {
  font-family: var(--ff-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 12px;
}
.solution-saas .solution-tag { color: var(--navy); }

.solution-card h3 {
  font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.solution-card > p { font-size: 0.9rem; margin-bottom: 24px; opacity: 0.8; line-height: 1.65; }

.solution-list {
  list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px;
}
.solution-list li {
  font-size: 0.875rem; display: flex; align-items: center; gap: 10px;
}
.solution-list li::before {
  content: ''; display: block; width: 16px; height: 16px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%2300E5C8' stroke-width='1.2'/%3E%3Cpath d='M5 8l2.5 2.5L11 5' stroke='%2300E5C8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.solution-saas .solution-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%23050F1E' stroke-width='1.2'/%3E%3Cpath d='M5 8l2.5 2.5L11 5' stroke='%23050F1E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===========================
   WHY
=========================== */

.why { background: var(--navy); }

.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
.why-item {
  padding: 36px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--navy-card);
  transition: border-color 0.25s;
}
.why-item:hover { border-color: rgba(0,229,200,0.3); }
.why-num {
  font-family: var(--ff-mono); font-size: 0.72rem;
  color: var(--teal); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.why-item h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.why-item p { font-size: 0.875rem; color: var(--white-dim); line-height: 1.65; }

/* ===========================
   CTA BAND
=========================== */

.cta-band {
  background: linear-gradient(135deg, #00E5C8 0%, #00BFA6 100%);
  padding: 80px 24px; text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--navy); margin-bottom: 16px;
}
.cta-band p { color: rgba(5,15,30,0.7); margin-bottom: 32px; font-size: 0.95rem; }
.cta-band .btn-primary {
  background: var(--navy); color: var(--teal);
}
.cta-band .btn-primary:hover { opacity: 0.9; }

/* ===========================
   CONTACT
=========================== */

.contact { background: var(--navy-mid); }

.contact-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start;
}
.contact-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}
.contact-copy > p { color: var(--white-dim); font-size: 0.925rem; margin-bottom: 36px; }

.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--white-dim); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--white-dim); letter-spacing: 0.04em; }
.optional { font-weight: 400; opacity: 0.6; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--white);
  font-family: var(--ff-main);
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(154,171,189,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group select option { background: var(--navy-card); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--white-dim); text-align: center; }

/* ===========================
   FOOTER
=========================== */

.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 0 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 60px 0 40px;
  display: flex; gap: 64px; align-items: flex-start;
}
.footer-brand { max-width: 260px; }
.footer-brand p { font-size: 0.85rem; color: var(--white-dim); margin-top: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: var(--white-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-bottom p { font-size: 0.78rem; color: var(--white-dim); }
.footer-bottom a { color: var(--teal); }

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-split { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 40px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { flex-direction: column; }
  .stat-div { width: auto; height: 1px; }
  .stat { padding: 20px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .solutions-split { grid-template-columns: 1fr; }
  .solution-card { padding: 32px 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { gap: 32px; }
  .footer-links { flex-direction: column; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .cert-ring { animation: none; }
  * { transition: none !important; }
}

/* ===========================
   TECHNOLOGY PARTNERS
=========================== */

.partners { background: var(--navy-mid); }

.partner-spotlight {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 48px;
}

.partner-spotlight-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 16px;
}

.partner-logo-badge {
  display: flex; align-items: center; gap: 14px;
}
.partner-name {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
}
.partner-since {
  font-size: 0.75rem; font-family: var(--ff-mono);
  color: var(--teal); letter-spacing: 0.06em;
  margin-top: 2px;
}
.partner-ext {
  font-size: 0.82rem; padding: 9px 18px;
}

.partner-desc {
  font-size: 0.9rem; color: var(--white-dim); line-height: 1.75;
  max-width: 820px; margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* Product grid */
.ascertia-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.asc-product {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 28px 28px;
  transition: border-color 0.25s;
}
.asc-product:hover { border-color: rgba(0,229,200,0.3); }

.asc-product-head { margin-bottom: 12px; }
.asc-tag {
  font-family: var(--ff-mono); font-size: 0.65rem;
  color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}
.asc-product h4 {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em;
}
.asc-product > p {
  font-size: 0.845rem; color: var(--white-dim); line-height: 1.7;
  margin-bottom: 16px;
}
.asc-feature-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.asc-feature-list li {
  font-size: 0.8rem; color: var(--white-dim);
  display: flex; align-items: flex-start; gap: 8px;
}
.asc-feature-list li::before {
  content: ''; flex-shrink: 0; display: block;
  width: 14px; height: 14px; margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l2.5 2.5L11 4' stroke='%2300E5C8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.partner-cta {
  display: flex; align-items: center; gap: 24px;
  padding-top: 32px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.partner-cta p {
  font-size: 0.95rem; color: var(--white-dim); flex: 1; min-width: 200px;
}

@media (max-width: 860px) {
  .ascertia-products { grid-template-columns: 1fr; }
  .partner-spotlight { padding: 28px 24px; }
}
