/* =========================
   Eidos Landing — styles.css
   Mobile-first, accessible
   ========================= */

/* 1) Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* 2) Design tokens */
:root{
  /* Colors (light) - Modern Landing */
  --bg: #ffffff;              /* pure white */
  --text: #334155;            /* slate-700 */
  --muted: #64748b;           /* slate-500 */
  --surface: #f8fafc;         /* slate-50 */
  --border: #e2e8f0;          /* slate-200 */
  --divider: #f1f5f9;         /* slate-100 */
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --accent: #3b82f6;          /* blue-500 */
  --accent-ink: #ffffff;
  --accent-soft: #dbeafe;     /* blue-100 */
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Layout */
  --container-max: 1120px;
  --radius: 16px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;
  --s-12: 80px;
  --s-24: 120px;

  /* Type scale (mobile-first) - Landing Page */
  --fs-300: 0.875rem;  /* 14px */
  --fs-400: 1rem;      /* 16px */
  --fs-500: 1.125rem;  /* 18px */
  --fs-600: 1.25rem;   /* 20px */
  --fs-700: 1.5rem;    /* 24px */
  --fs-800: 2rem;      /* 32px */
  --fs-900: 2.5rem;    /* 40px */
  --fs-1000: 3rem;     /* 48px */
  --fs-1100: 3.5rem;   /* 56px */
  --fs-1200: 4rem;     /* 64px */
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0f172a;            /* slate-900 */
    --text: #f1f5f9;          /* slate-100 */
    --muted: #94a3b8;         /* slate-400 */
    --surface: #1e293b;       /* slate-800 */
    --border: #334155;        /* slate-700 */
    --divider: #1e293b;       /* slate-800 */
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
    --accent: #60a5fa;        /* blue-400 */
    --accent-ink: #0f172a;
    --accent-soft: #1e3a8a;   /* blue-900 */
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  }
}

/* 3) Helpers & a11y */
.visually-hidden{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link{
  position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus{
  left: 16px; top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px; border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
}

/* 4) Layout primitives */
.container{
  width: min(var(--container-max), 100% - 2rem);
  margin-inline: auto;
}

.section{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--s-10) var(--s-4);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.section:not(.hero){
  min-height: auto;
  padding: var(--s-16) var(--s-4);
  margin-bottom: var(--s-8);
  margin-top: var(--s-12);
}

.section.pains{
  margin-top: 0;
}

.section.cta{
  margin-top: var(--s-24);
  padding-bottom: var(--s-12);
}

.section:last-of-type{
  border-bottom: none;
}

@media (min-width: 768px){
  .section{ padding-block: var(--s-10); }
}

/* 5) Brand (icon + name) */
.brand{
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.brand__icon{
  width: 40px; height: 40px; border-radius: 12px; display: block;
  background: var(--gradient);
}
.brand__name{
  margin: 0;
  font-size: var(--fs-700);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* 6) Hero */
.hero__headline{
  font-size: var(--fs-1000);
  line-height: 1.1;
  margin: 0 0 var(--s-8);
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 70ch;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subheadline{
  font-size: var(--fs-600);
  color: var(--muted);
  margin: 0 0 var(--s-10);
  max-width: 60ch;
  line-height: 1.6;
  font-weight: 400;
}

@media (min-width: 768px){
  .hero__headline{ 
    font-size: var(--fs-1200);
    line-height: 1.05;
  }
  .hero__subheadline{ 
    font-size: var(--fs-700);
    margin-bottom: var(--s-12);
  }
}

/* 7) Intros & eyebrow */
.intro{
  color: var(--muted);
  font-size: var(--fs-600);
  max-width: 70ch;
  line-height: 1.7;
  font-weight: 400;
}

.eyebrow{
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: var(--fs-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* 8) Cards (pains & benefits) */
.card-list{
  display: grid;
  gap: var(--s-6);
  list-style: none;
  padding: var(--s-4) 0;
  max-width: 1000px;
  width: 100%;
}

.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--s-8);
  display: flex;
  align-items: center;
  text-align: left;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.card__title{
  margin: 0;
  font-size: var(--fs-600);
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

/* Grids per section */
.card-list--pains{
  grid-template-columns: 1fr;
}
.card-list--benefits{
  grid-template-columns: 1fr;
}

@media (min-width: 520px){
  .card-list--pains{ grid-template-columns: 1fr 1fr; }
  .card-list--benefits{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px){
  .card-list--pains{ grid-template-columns: 1fr 1fr 1fr; }
  .card-list--benefits{ grid-template-columns: 1fr 1fr 1fr; }
}

/* 9) Section titles */
.section-title{
  font-size: var(--fs-900);
  margin: 0 0 var(--s-16);
  line-height: 1.1;
  font-weight: 800;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 10) Features ("How Eidos helps") */
#how-title{
  font-size: var(--fs-900);
  margin: 0 0 var(--s-16);
  line-height: 1.1;
  font-weight: 800;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.how-content{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
  max-width: 1200px;
  width: 100%;
  align-items: start;
  margin-top: var(--s-8);
}

@media (min-width: 768px){
  .how-content{
    grid-template-columns: 1fr 1fr;
    gap: var(--s-20);
    align-items: center;
  }
}

.feature-list{
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.feature-item{
  margin-bottom: var(--s-6);
  color: var(--text);
  display: block;
  font-size: var(--fs-600);
  line-height: 1.6;
  padding: var(--s-8);
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: left;
  box-shadow: var(--shadow);
  position: relative;
}

.feature-item strong{
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--fs-600);
}

.feature-image{
  width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  order: -1;
}

.feature-image__img{
  max-width: 100%;
  max-height: calc(100% - 2rem);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15), 0 8px 20px -5px rgba(0,0,0,0.1);
}

.feature-image__caption{
  margin: var(--s-4) 0 0 0;
  font-size: var(--fs-300);
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

@media (min-width: 768px){
  .feature-image{
    order: 0;
    height: 600px;
  }
}

/* 11) CTA */
.cta{
  text-align: center;
  background: var(--bg);
  color: var(--text);
}

#cta-title{
  font-size: var(--fs-900);
  margin: 0 0;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.lead{
  font-size: var(--fs-600);
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.6;
}

/* Buttons (anchor-styled) */
.button{
  display: inline-block;
  line-height: 1;
  padding: 16px 32px;
  border-radius: 50px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-500);
  border: none;
  transition: all 300ms ease;
  min-width: 200px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.button::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 500ms ease;
}

.button:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button:hover::before{
  left: 100%;
}

.button:active{
  transform: translateY(0);
}

.button:focus-visible{
  outline: 2px solid white;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  .button{ transition: none; }
  .button:hover, .button:active{ transform: none; }
}

/* 12) Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding-block: var(--s-10);
  background: var(--bg);
}
.footer-brand{
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}
.footer-brand__icon{
  width: 32px; height: 32px; border-radius: 8px; background: var(--gradient);
}
.footer-brand__name{
  font-weight: 700;
  color: var(--text);
  font-size: var(--fs-600);
}
/* 13) Images */
img{ max-width: 100%; height: auto; }

/* 14) Links */
a{ color: inherit; }
a:hover{ text-decoration: underline; }

/* 15) Headings default spacing */
h1, h2, h3{ color: var(--text); }
h1, h2{ margin: 0 0 var(--s-8); font-weight: 800; }
h3{ margin: 0 0 var(--s-6); font-weight: 700; }
