/* ============================================================
   6 Sigma AI — Apple-grade Light Minimal v3
   SF Pro inspired, image-rich, no clutter
   ============================================================ */

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

:root {
  --bg:            #fff;
  --bg-alt:        #f5f5f7;
  --text:          #1d1d1f;
  --text-sub:      #86868b;
  --accent:        #0071e3;
  --accent-hover:  #0077ed;
  --border:        rgba(0,0,0,.04);
  --radius:        28px;
  --max-w:         980px;
  --nav-h:         44px;
  --font:          -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
  --ease:          cubic-bezier(.25,.1,.25,1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* --- Nav (Apple bar) --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 22px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.02em; text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-logo span { font-weight: 400; color: var(--text-sub); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { font-size: 12px; color: var(--text); opacity: .8; text-decoration: none; transition: opacity .3s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: none; }
.nav-lang {
  font-size: 12px; padding: 2px 10px;
  border: 1px solid rgba(0,0,0,.15); border-radius: 980px;
  color: var(--text-sub); background: transparent;
  cursor: pointer; font-family: var(--font); transition: all .3s;
}
.nav-lang:hover { border-color: var(--text); color: var(--text); }
.nav-toggle { display: none; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text); }

@media (max-width: 734px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* --- Typography (Apple scale) --- */
.t-hero {
  font-size: 56px; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.07;
}
.t-headline {
  font-size: 48px; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.08;
}
.t-intro {
  font-size: 21px; font-weight: 600;
  letter-spacing: .011em; line-height: 1.24;
  color: var(--text-sub);
}
.t-section {
  font-size: 40px; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.1;
}
.t-section-sub {
  font-size: 21px; font-weight: 400;
  line-height: 1.38; color: var(--text-sub);
}
.t-eyebrow {
  font-size: 21px; font-weight: 600;
  color: var(--accent);
}
.t-body {
  font-size: 17px; font-weight: 400;
  line-height: 1.47; color: var(--text-sub);
}
.t-caption {
  font-size: 12px; color: var(--text-sub);
}

@media (max-width: 734px) {
  .t-hero { font-size: 36px; }
  .t-headline { font-size: 32px; }
  .t-section { font-size: 28px; }
  .t-intro { font-size: 19px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center;
  padding: 8px 20px; font-size: 17px;
  font-family: var(--font); border-radius: 980px;
  border: none; cursor: pointer; transition: all .3s var(--ease); text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.link-arrow { font-size: 21px; color: var(--accent); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow::after { content: ' \203A'; }

/* --- Sections --- */
.section-white { background: var(--bg); }
.section-gray  { background: var(--bg-alt); }
.w { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

/* --- Hero --- */
.hero {
  text-align: center;
  padding: calc(var(--nav-h) + 56px) 22px 0;
}
.hero .t-eyebrow { margin-bottom: 8px; }
.hero .t-hero { margin-bottom: 12px; }
.hero .t-intro { max-width: 580px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-img {
  width: 100%; max-width: 800px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 21/9;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Feature Row (text left, image right — Apple "split") --- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: 80px 22px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-text .t-eyebrow { margin-bottom: 8px; }
.feature-text .t-section { margin-bottom: 12px; }
.feature-text .t-body { margin-bottom: 16px; }
.feature-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.feature-img:hover img { transform: scale(1.02); }

@media (max-width: 734px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 32px; padding: 56px 22px; }
}

/* --- Tile Grid (2-up) --- */
.tile-section { padding: 40px 22px 80px; }
.tile-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; max-width: 1060px; margin: 0 auto;
}
.tile {
  background: var(--bg-alt); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  min-height: 520px; transition: transform .4s var(--ease);
}
.tile:hover { transform: scale(1.005); }
.tile-content { padding: 44px 36px 0; flex: 0 0 auto; text-align: center; min-height: 160px; }
.tile-content .t-eyebrow { margin-bottom: 6px; font-size: 17px; }
.tile-content .t-body { font-size: 14px; max-width: 340px; margin: 8px auto 0; }
.tile-img { flex: 0 0 220px; overflow: hidden; margin-top: 20px; }
.tile-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.tile:hover .tile-img img { transform: scale(1.03); }

@media (max-width: 734px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile { min-height: 420px; }
}

/* --- Full Bleed Image --- */
.bleed-img {
  max-width: 1060px; margin: 0 auto;
  padding: 0 22px;
}
.bleed-img img {
  width: 100%; border-radius: var(--radius);
  display: block;
}

/* --- Steps --- */
.steps-section { padding: 80px 22px; text-align: center; }
.steps-section .t-section { margin-bottom: 56px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: var(--max-w); margin: 0 auto;
}
.step-item { text-align: center; }
.step-num {
  font-size: 64px; font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--text) 0%, rgba(29,29,31,.18) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 12px;
}
.step-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: var(--text-sub); }

@media (max-width: 734px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

/* --- CTA --- */
.cta { text-align: center; padding: 80px 22px; }
.cta .t-section { margin-bottom: 12px; }
.cta .t-section-sub { margin-bottom: 24px; }

/* --- Phone Mockup --- */
.phone {
  width: 240px; height: 480px;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 32px;
  margin: 0 auto;
  overflow: hidden; position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.phone::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 20px; background: var(--bg-alt); border-radius: 10px; z-index: 2;
}
.phone-body { padding: 36px 14px 14px; }
.msg {
  border-radius: 14px; padding: 8px 12px;
  margin-bottom: 6px; font-size: 13px; line-height: 1.38; text-align: left;
}
.msg-user { background: var(--bg-alt); margin-left: 20px; }
.msg-ai   { background: #e8f0fe; margin-right: 20px; }
.msg-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; color: var(--text-sub); }
.msg-ai .msg-label { color: var(--accent); }

/* --- Subscribe --- */
.subscribe {
  display: flex; gap: 8px;
  max-width: 420px; margin: 0 auto;
}
.subscribe input {
  flex: 1; padding: 10px 16px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 980px;
  font-size: 17px; font-family: var(--font);
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .3s;
}
.subscribe input::placeholder { color: #ccc; }
.subscribe input:focus { border-color: var(--accent); }
.subscribe-ok { display: none; font-size: 14px; color: #34c759; margin-top: 8px; }
.subscribe-ok.show { display: block; }

@media (max-width: 480px) {
  .subscribe { flex-direction: column; }
}

/* --- FAQ --- */
.faq { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.08); padding: 18px 0; }
.faq-q {
  font-size: 17px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--text-sub); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s, padding .4s; font-size: 14px; color: var(--text-sub); line-height: 1.5; }
.faq-item.open .faq-a { max-height: 200px; padding-top: 10px; }

/* --- Values --- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; max-width: var(--max-w); margin: 56px auto 0; }
.values-item { text-align: center; }
.values-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.values-item p { font-size: 14px; color: var(--text-sub); }
@media (max-width: 734px) { .values { grid-template-columns: 1fr; gap: 40px; } }

/* --- Footer --- */
.footer { border-top: 1px solid rgba(0,0,0,.06); padding: 16px 0; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--text-sub); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--text-sub); }
@media (max-width: 734px) { .footer-inner { flex-direction: column; text-align: center; } }

/* --- Modal --- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 22px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 40px 36px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 20px;
  color: var(--text-sub); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-box h2 { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.modal-box p, .modal-box li { font-size: 14px; color: var(--text-sub); line-height: 1.6; margin-bottom: 10px; }
.modal-box ul { padding-left: 18px; }
.modal-box a { color: var(--accent); }
.contact-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.contact-row span { font-size: 14px; color: var(--text-sub); }

/* --- Scroll Fade --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
