:root {
  --bg: #02093d;
  --bg-elev: #02093d;
  --panel: #02093d;
  --text: #e6e8ef;
  --muted: #b7bdc9;
  --brand: #6aa8ff;
  --brand-2: #8e7cff;
  --accent: #00ffd0;
  --border: #1f2333;
  --success: #2ad4a3;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { 
  overflow-x: hidden; 
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--text);
  background: #02093d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: var(--panel); padding: 8px 12px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #02093d;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name { color: var(--text); font-weight: 700; letter-spacing: 0.2px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  box-shadow: 0 6px 0 0 var(--text), 0 -6px 0 0 var(--text);
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #0b0d15;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); }

/* Request Demo button (fluorescent green) */
.btn.btn-demo {
  background: #39ff14;
  color: #0b0d15;
  box-shadow: var(--shadow);
  border-color: transparent;
}
.btn.btn-demo:hover { filter: brightness(1.06); }

/* Sections */
.section { padding: 80px 0; }
.section .section-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }

h1, h2, h3 { margin: 0 0 12px 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; }
h2 { font-size: clamp(24px, 3.6vw, 36px); line-height: 1.15; }
h3 { font-size: 18px; }
p { color: var(--muted); line-height: 1.7; margin: 0 0 12px 0; }
a { -webkit-tap-highlight-color: rgba(106, 168, 255, 0.3); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.subhead { font-size: 18px; }
.fine-print { color: #8b92a3; font-size: 12px; }
.center { text-align: center; }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(600px 300px at 10% -20%, rgba(106,168,255,0.25), rgba(0,0,0,0)),
    radial-gradient(800px 400px at 90% -10%, rgba(0,255,208,0.15), rgba(0,0,0,0));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url("https://storage.googleapis.com/website-assets-ax/autocortx_preview.gif") center / cover no-repeat; */
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center;
}
.hero-copy {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.hero-copy .hero-cta { display: flex; gap: 12px; margin: 20px auto 16px; flex-wrap: wrap; justify-content: center; }
.trust { margin-top: 8px; }
.trust-label { font-size: 12px; margin-bottom: 8px; color: var(--muted); }
.trust-logos { width: 100%; max-width: 520px; opacity: 0.8; }
.hero-art {
  position: relative;
  min-height: 360px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16,19,33,0.9), rgba(16,19,33,0.6));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.9;
}
.orb-lg { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, #6aa8ff, rgba(106,168,255,0)); right: -80px; top: -60px; }
.orb-md { width: 280px; height: 280px; background: radial-gradient(circle at 60% 20%, #8e7cff, rgba(142,124,255,0)); left: -60px; bottom: 20px; }
.orb-sm { width: 180px; height: 180px; background: radial-gradient(circle at 40% 50%, #00ffd0, rgba(0,255,208,0)); right: 80px; bottom: -20px; }

/* Cards */
.cards {
  display: grid;
  gap: 16px;
}
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; }
.card-feature ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.card-feature li { margin: 6px 0; }

/* Highlights */
.highlights .card { background: rgba(255,255,255,0.02); }

/* Security */
.security .security-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
.badges {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 12px;
}
.security-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Testimonials */
.quote p { font-style: italic; }
.quote footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #0b0d15;
  font-weight: 700;
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: inline-block;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
.resources h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 10px;
}
.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.resource-list a {
  color: var(--text);
  text-decoration: none;
}
.resource-list a:hover {
  color: var(--muted);
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}
.contact-list a { color: var(--text); }
.contact-form {
  display: grid;
  gap: 12px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 16px; /* Prevents zoom on iOS */
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { min-height: 120px; height: auto; resize: vertical; }

/* Contact Success Message */
.contact-success {
  text-align: center;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--success) 0%, #2ad4a3 100%);
  color: #0b0d15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.contact-success h2 {
  margin: 0;
  color: var(--text);
}
.contact-success p {
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #02093d;
  padding: 40px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 24px;
  align-items: start;
}
.brand-footer .brand-mark { width: 24px; height: 24px; }
.footer-title { font-size: 14px; color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }

/* Footer legal links */
.footer-link {
  color: var(--brand);
  text-decoration: none;
}
.footer-link:visited {
  color: var(--brand);
}
.footer-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security .security-grid { grid-template-columns: 1fr; }
  .security-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  /* Carousel buttons repositioning for tablets */
  .carousel-btn.carousel-prev { left: 10px; }
  .carousel-btn.carousel-next { right: 10px; }
}

@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; }
  
  /* Reduce section padding for tablets */
  .section { padding: 60px 0; }
  
  /* Feature cards in 2 columns on tablets */
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Product grid stays 2 columns on tablets */
  .product-grid {
    gap: 30px !important;
  }
}

@media (max-width: 720px) {
  .cards.three { grid-template-columns: 1fr; }
  .security-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  
  /* Product grid responsive */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Feature cards grid */
  .feature-cards-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Founder grid */
  .founder-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Founder photo placeholder sizing */
  .founder-grid > div:first-child > div {
    max-width: 200px !important;
    margin: 0 auto !important;
  }
  
  /* Mobile Navigation */
  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: rgba(2,9,61,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 12px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { margin-left: 0; width: 100%; }
  .nav-cta .btn { width: 100%; }
  
  /* Reduce section padding for mobile */
  .section { padding: 40px 0; }
  
  /* Adjust container padding */
  .container {
    width: min(1160px, 100% - 24px);
  }
  
  /* Product grid to single column */
  .section#product > .container > div:nth-of-type(2) {
    grid-template-columns: 1fr !important;
  }
  
  /* Founder section grid */
  .section#founder .container > div {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Footer navigation */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Resources grid responsive */
.resources-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}

/* Mobile specific improvements */
@media (max-width: 640px) {
  /* Typography adjustments */
  h1 { font-size: clamp(28px, 8vw, 42px) !important; }
  h2 { font-size: clamp(22px, 6vw, 32px) !important; }
  
  /* Hero adjustments */
  .hero .subhead { font-size: 1.1rem !important; }
  
  /* Carousel buttons on mobile - move inside */
  .carousel-btn.carousel-prev { 
    left: 5px; 
    width: 36px;
    height: 36px;
    font-size: 1rem;
    opacity: 0.7;
  }
  .carousel-btn.carousel-next { 
    right: 5px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    opacity: 0.7;
  }
  .carousel-btn:hover {
    opacity: 1;
  }
  
  /* Carousel dots - better touch targets */
  .carousel-dot {
    width: 12px !important;
    height: 12px !important;
    padding: 4px;
  }
  
  /* Carousel container adjustments */
  .carousel-container {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Carousel slide padding */
  .carousel-slide {
    padding: 1.5em !important;
  }
  
  /* About section card padding */
  .section[aria-labelledby="about-title"] .container > div {
    padding: 2em 1.5em !important;
  }
  
  /* Hide decorative corners on small screens */
  .section[aria-labelledby="about-title"] .container > div > div[style*="position: absolute"] {
    display: none !important;
  }
  
  /* Cards grid for 4-column to single column */
  .cards.four { grid-template-columns: 1fr !important; }
  
  /* Security cards */
  .security-cards {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  
  /* Security grid wrapper */
  .security-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Adjust quote/CTA boxes padding on mobile */
  #compliance ~ div,
  #overview ~ div {
    padding: 1.5em !important;
  }
  
  /* Buttons stacking */
  .hero-cta {
    flex-direction: column;
    width: 100%;
    margin: 20px auto 16px !important;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Vertical scroll hero adjustments */
  .vertical-scroll-hero {
    margin: 0 auto !important;
  }
  
  /* Hero copy centering on mobile */
  .hero-copy {
    margin: 0 auto !important;
  }
  
  /* Contact form buttons */
  .contact-form .btn {
    width: 100%;
  }
}

/* Hero responsive text sizing */
@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2rem !important;
  }
  
  .hero-scroll-text {
    font-size: 1.5rem !important;
  }
  
  .vertical-scroll-hero {
    height: 16em !important;
    max-width: 100% !important;
  }
  
  .subhead {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 1.75rem !important;
  }
  
  .hero-scroll-text {
    font-size: 1.25rem !important;
  }
  
  .vertical-scroll-hero {
    height: 20em !important;
    max-width: 100% !important;
  }
  
  .subhead {
    font-size: 1rem !important;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .hero-main-title {
    font-size: 1.5rem !important;
  }
  
  .hero-scroll-text {
    font-size: 1.1rem !important;
  }
  
  .vertical-scroll-hero {
    height: 22em !important;
  }
  
  .hero-cta {
    gap: 0.75rem !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Further reduce padding */
  .section { padding: 30px 0; }
  
  /* Container tighter padding */
  .container {
    width: min(1160px, 100% - 20px);
  }
  
  /* Header adjustments */
  .header-inner {
    height: 56px;
  }
  
  /* Brand logo size */
  .brand img {
    width: 140px !important;
    height: 60px !important;
  }
  
  /* Card padding reduction */
  .card {
    padding: 16px;
  }
  
  /* Overview section title */
  #overview-title {
    font-size: 1.8rem !important;
  }
  
  /* Product title */
  #product-title {
    font-size: 1.8rem !important;
  }
  
  /* Compliance title */
  #compliance-title {
    font-size: 1.8rem !important;
  }
  
  /* Carousel slide content */
  .carousel-slide h3 {
    font-size: 1.5rem !important;
  }
  
  .carousel-slide h4 {
    font-size: 1.2rem !important;
  }
  
  .carousel-slide p {
    font-size: 0.95rem !important;
  }
  
  /* Button sizing */
  .btn {
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  
  /* List items in sections */
  .section ul li {
    font-size: 0.95rem;
  }
  
  /* Quote boxes */
  div[style*="rgba(0,212,255"] p {
    font-size: 1rem !important;
  }
  
  /* Contact list spacing */
  .contact-list li {
    margin: 12px 0;
    font-size: 0.95rem;
  }
  
  /* Footer grid */
  .footer-brand-section {
    text-align: center;
  }
}

/* Company page */
.company-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.subnav {
  position: sticky;
  top: 88px;
}
.subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.subnav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
}
.subnav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
}
.subnav a.active {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.company-section {
  scroll-margin-top: 96px;
  margin-bottom: 28px;
}
.company-content h2 { margin-bottom: 8px; }

/* People cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.person-card {
  background: #02093d;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.person-info {
  padding: 16px;
  text-align: center;
}
.person-name {
  margin: 0 0 2px 0;
  font-size: 18px;
  font-weight: 700;
}
.person-role {
  margin: 0 0 12px 0;
  color: var(--muted);
}
.person-card .btn {
  height: 36px;
}
.btn-light {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-light:hover {
  background: rgba(255,255,255,0.15);
}

@media (max-width: 1024px) {
  .company-grid { grid-template-columns: 220px 1fr; }
}
@media (max-width: 840px) {
  .company-grid { grid-template-columns: 1fr; }
  .subnav { position: static; }
  .subnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .subnav a { height: auto; }
}

@media (max-width: 1024px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* Expandable Cards */
.expandable-card {
  position: relative;
}

.expandable-card:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(2, 9, 61, 0), rgba(2, 9, 61, 0.95));
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

.read-more-btn:hover {
  background: #00b8e6 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.read-more-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr !important;
  }
  
  .expandable-card {
    height: 250px !important;
  }
  
  .expandable-card.expanded {
    height: auto !important;
  }
}

