/* EventInk — styles.css */

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

:root {
  --blue: #4A90D9;
  --blue-light: #EBF2FB;
  --blue-dark: #2E6DB4;
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #fdfdfd;
  --bg-alt: #f5f6f8;
  --card-bg: #fff;
  --border: #e2e5ea;
  --radius: 12px;
  --max-w: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8e8;
    --text-secondary: #a0a0a0;
    --bg: #111114;
    --bg-alt: #1a1a1e;
    --card-bg: #1e1e22;
    --border: #2e2e34;
    --blue-light: #1c2a3e;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
}

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}

/* -------------------------------------------------- */
/*  Nav                                                */
/* -------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,253,253,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .site-nav { background: rgba(17,17,20,.85); }
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: .9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: .25s;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
}

/* -------------------------------------------------- */
/*  Hero                                               */
/* -------------------------------------------------- */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 520px; }
.hero-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone {
  width: 280px;
  height: 560px;
  background: #0d0d0d;
  border-radius: 36px;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  .phone-screen { background: #1c1c1e; color: #e8e8e8; }
}

/* inner UI elements */
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
}
@media (prefers-color-scheme: dark) {
  .phone-statusbar { color: #ccc; }
}
.phone-header {
  padding: 8px 18px 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
}
@media (prefers-color-scheme: dark) {
  .phone-header { color: #eee; border-color: #333; }
}
.phone-card {
  margin: 14px;
  padding: 16px;
  background: var(--blue-light);
  border-radius: 14px;
  border-left: 4px solid var(--blue);
}
.phone-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.phone-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.phone-confidence {
  margin: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.conf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.conf-bar {
  height: 4px;
  border-radius: 4px;
  background: #ddd;
  flex: 1;
  overflow: hidden;
}
@media (prefers-color-scheme: dark) { .conf-bar { background: #333; } }
.conf-fill { height: 100%; border-radius: 4px; background: var(--blue); }
.conf-high .conf-fill { background: #34a853; }
.conf-med .conf-fill { background: #f9ab00; }

.phone-actions {
  margin: auto 14px 14px;
  display: flex;
  gap: 10px;
}
.phone-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.phone-btn-primary { background: var(--blue); color: #fff; }
.phone-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero p { max-width: 100%; margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .phone-wrap { margin-top: 20px; }
}

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

.how-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 8px;
}
.how-intro-img {
  border-radius: var(--radius);
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 720px) {
  .how-intro { grid-template-columns: 1fr; }
  .how-intro-img { max-height: 200px; }
}

.how-illustration {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 48px;
  position: relative;
}
/* connector line */
.how-steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: var(--border);
}
.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.step-num {
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.how-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-step p {
  font-size: .95rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .how-steps::before { display: none; }
}

/* -------------------------------------------------- */
/*  Features                                           */
/* -------------------------------------------------- */
.features {
  padding: 80px 0;
}
.features-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
@media (prefers-color-scheme: dark) {
  .feature-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.3); }
}

/* staggered layout */
.feature-card:nth-child(1) { grid-column: 1 / 8; }
.feature-card:nth-child(2) { grid-column: 8 / 13; }
.feature-card:nth-child(3) { grid-column: 1 / 5; }
.feature-card:nth-child(4) { grid-column: 5 / 9; }
.feature-card:nth-child(5) { grid-column: 9 / 13; }
.feature-card:nth-child(6) { grid-column: 1 / 7; }
.feature-card:nth-child(7) { grid-column: 7 / 13; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- */
/*  Availability Assistant                             */
/* -------------------------------------------------- */
.availability {
  padding: 80px 0;
  background: var(--bg-alt);
}
.avail-demo {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.avail-input, .avail-output {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.avail-input-label, .avail-output-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.avail-bubble {
  background: var(--blue-light);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 18px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text);
}
.avail-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.avail-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: .9rem;
}
@media (prefers-color-scheme: dark) { .avail-slot { background: var(--bg); } }
.avail-slot-day {
  font-weight: 700;
  min-width: 40px;
  color: var(--blue);
}
.avail-slot-time { color: var(--text-secondary); }
.avail-copy {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--blue);
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 640px) {
  .avail-demo { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- */
/*  AI Providers                                       */
/* -------------------------------------------------- */
.ai-providers {
  padding: 80px 0;
}
.providers-row {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.provider-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: .9rem;
  font-weight: 500;
}
.provider-chip svg, .provider-chip img {
  width: 20px; height: 20px;
}
.provider-note {
  margin-top: 20px;
  font-size: .95rem;
  color: var(--text-secondary);
  max-width: 540px;
}
.provider-note strong { color: var(--text); }

/* -------------------------------------------------- */
/*  Lifestyle image section                            */
/* -------------------------------------------------- */
.lifestyle-section {
  padding: 60px 0;
  background: var(--bg-alt);
}
.lifestyle-section .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.lifestyle-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.lifestyle-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.lifestyle-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}
.lifestyle-text p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .lifestyle-section .container { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- */
/*  Footer                                             */
/* -------------------------------------------------- */
.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}
.footer-sub {
  font-size: .85rem;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: .88rem;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* -------------------------------------------------- */
/*  Animations                                         */
/* -------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
