/* ========================================
   Asta Marketing Site
   ======================================== */

:root {
  /* Color system — Dark palette */
  --color-bg: #102830;
  --color-surface: #1A3A45;
  --color-surface-alt: #15323C;
  --color-border: rgba(255,255,255,0.08);
  --color-border-light: rgba(255,255,255,0.05);

  --color-text: #FFFFFF;
  --color-text-secondary: #9BB0B9;
  --color-text-tertiary: #7A8F99;

  --color-primary: #4ECBA0;
  --color-primary-hover: #3FBF92;
  --color-primary-subtle: rgba(78,203,160,0.1);
  --color-primary-text: #4ECBA0;

  --color-accent: #5BB8A0;
  --color-accent-subtle: rgba(91,184,160,0.1);

  --color-secondary: #6B9FBF;
  --color-secondary-subtle: rgba(107,159,191,0.1);

  --color-purple: #9B8EC4;
  --color-purple-subtle: rgba(155,142,196,0.1);

  --color-warm: #F59E0B;
  --color-warm-subtle: rgba(245,158,11,0.1);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Shadows — deeper for dark bg */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.3);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.4);
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin-top: 12px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-primary:not(.btn-sm):not(.btn-lg) {
  padding: 12px 28px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 700;
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(78,203,160,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(16, 40, 48, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--color-border-light); }

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 35px;
  width: auto;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--color-text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(78, 203, 160, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(155, 142, 196, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-subtle);
  color: var(--color-primary-text);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.hero-stat { text-align: center; max-width: 200px; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
}
.hero-stat-divider {
  width: 1px;
  height: 60px;
  background: var(--color-border-light);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ----------------------------------------
   Solutions / Tabs
   ---------------------------------------- */
.solutions {
  padding: 100px 0;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.tab:hover { color: var(--color-text); }
.tab.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.solution-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.solution-desc {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.value-props {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.value-props li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.vp-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(78,203,160,0.1);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}
.vp-icon svg { width: 18px; height: 18px; }

.value-props strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.value-props span {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* Phone mockup */
.solution-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  background: #0B1E25;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
}

.phone-screen {
  background: #132E38;
  border-radius: 26px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border-light);
}

.phone-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.phone-name { font-weight: 600; font-size: 0.9rem; }
.phone-status { font-size: 0.72rem; color: var(--color-accent); }

.phone-messages {
  flex: 1;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.msg-bot {
  background: rgba(255,255,255,0.06);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  color: var(--color-text-secondary);
}

.msg-user {
  background: #2D6B5A;
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}

.msg-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 100px;
}

/* ----------------------------------------
   Affiliations
   ---------------------------------------- */
.affiliations {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.affiliations-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: 24px;
}

.affiliations-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.affiliation-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.3s;
  filter: grayscale(100%) brightness(2);
}
.affiliation-logo:hover { opacity: 0.8; filter: grayscale(0%) brightness(2); }

/* ----------------------------------------
   How It Works
   ---------------------------------------- */
.how-it-works {
  padding: 100px 0;
  background: var(--color-surface-alt);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(78,203,160,0.2);
  margin-bottom: 16px;
  line-height: 1;
}

.step-content h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.step-line {
  width: 1px;
  height: 100px;
  background: var(--color-border);
  flex-shrink: 0;
  margin-top: 20px;
}

/* ----------------------------------------
   Evidence
   ---------------------------------------- */
.evidence {
  padding: 100px 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.evidence-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.evidence-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.evidence-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.evidence-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.evidence-card cite {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  font-style: normal;
}

/* ----------------------------------------
   Instruments
   ---------------------------------------- */
.instruments {
  padding: 80px 0 100px;
  background: var(--color-surface-alt);
}

.instrument-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.instrument-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.2s;
}
.instrument-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(78,203,160,0.08);
}

.tag-custom {
  border-style: dashed;
  color: var(--color-text-tertiary);
}

/* ----------------------------------------
   Founders
   ---------------------------------------- */
.founders {
  padding: 100px 0;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
}

.founder-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.founder-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0B1E25;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-info {
  padding: 28px;
}

.founder-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.founder-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.founder-info p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  transition: color 0.2s;
}
.founder-linkedin svg {
  width: 16px;
  height: 16px;
}
.founder-linkedin:hover {
  color: var(--color-primary);
}

/* ----------------------------------------
   CTA
   ---------------------------------------- */
.cta {
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
}

.cta-content h2 { margin-bottom: 16px; }
.cta-content p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-email {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.9rem !important;
  color: var(--color-text-tertiary) !important;
}
.cta-email a {
  color: var(--color-primary);
  font-weight: 500;
}
.cta-email a:hover { text-decoration: underline; }

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border-light);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-text); }

.footer-legal p {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 900px) {
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .solution-visual { order: -1; }
  .evidence-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-line { width: 60px; height: 1px; }
  .hero-stats { flex-direction: column; align-items: center; gap: 24px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .founders-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .tabs { flex-direction: column; width: 100%; }
  .tab { text-align: center; }

  .cta-content { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .phone-frame { width: 260px; }
}
