/*
Theme Name: Ai-Fi Swiss Editorial
Theme URI: https://ai-fi.ch
Description: Swiss Editorial refresh for ai-fi.ch — ivory, serif, teal. Anti-blue direction.
Author: AI-Fi Marketing Team
Version: 1.0
*/

:root {
  --ivory: #FAF8F3;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --ink-3: #6B6B6B;
  --teal: #0A8B8B;
  --teal-dark: #087272;
  --gold: #C19A4B;
  --border: #E8E4DC;
  --border-soft: #F0EDE5;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --shadow: 0 1px 3px rgba(26,26,26,0.04);
  --shadow-hover: 0 4px 12px rgba(26,26,26,0.06);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width:100%; height:auto; display:block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
@media (min-width:768px) { .container { padding: 0 48px; } }
@media (min-width:1024px) { .container { padding: 0 64px; } }

/* === NAV === */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  height: 72px;
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.nav-logo { display:flex; align-items:center; gap:10px; }
.nav-logo img { height: 36px; }
.nav-links { display:none; gap:32px; align-items:center; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--teal); text-decoration:none; }
.nav-cta { background:var(--teal); color:var(--white); padding:10px 22px; border-radius: 6px; font-weight:600; font-size:14px; transition: all .2s; }
.nav-cta:hover { background: var(--teal-dark); text-decoration:none; }
.nav-burger { display:block; background:none; border:none; cursor:pointer; }
.nav-burger span { display:block; width:22px; height:1.5px; background:var(--ink); margin:5px 0; }
@media (min-width:1024px) {
  .nav-links { display:flex; }
  .nav-burger { display:none; }
}

/* === HERO === */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex; align-items: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}
.hero-video-mobile { display: none; }
.hero-video-desktop { display: block; }
@media (max-width: 768px) {
  .hero-video-mobile { display: block; }
  .hero-video-desktop { display: none; }
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 820px; }
.eyebrow {
  display:inline-flex; align-items:center; gap:12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 32px;
}
.eyebrow::before { content:''; width:32px; height:1.5px; background: var(--teal); }
h1.hero-h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 32px;
}
h1.hero-h1 em { font-style: italic; font-weight: 400; color: var(--teal); }
.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--ink-2); max-width: 640px; margin-bottom: 40px; line-height: 1.65;
}
.hero-ctas { display:flex; gap:16px; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; gap:8px; padding:14px 28px; border-radius: 6px; font-weight: 600; font-size: 15px; cursor:pointer; transition: all .2s; text-decoration:none; border: 1.5px solid transparent; }
.btn:hover { text-decoration:none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* === SECTIONS === */
section { padding: 96px 0; position: relative; z-index: 1; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); margin-bottom: 20px;
}
.section-head p { color: var(--ink-2); font-size: 1.1rem; line-height: 1.65; }

/* === CARDS === */
.card-grid { display:grid; gap:24px; }
.card {
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; transition: all .25s; box-shadow: var(--shadow);
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; color: var(--ink);
}
.card p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
.card-icon {
  width:44px; height:44px; border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 24px;
  font-size: 20px; color: var(--teal);
  background: rgba(10,139,139,0.08);
}

@media (min-width:768px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* === SPLIT SECTION === */
.split { display:grid; gap:64px; align-items:center; }
@media (min-width:1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split-text h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height:1.1;
  margin-bottom: 20px; color: var(--ink);
}
.split-text p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 16px; }
.split-visual {
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow);
}
.split-visual .stat { margin-bottom: 32px; }
.split-visual .stat:last-child { margin-bottom: 0; }
.split-visual .stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.6rem; font-weight: 600; color: var(--teal); line-height:1; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.split-visual .stat-label { font-size: 0.9rem; color: var(--ink-3); }

/* === PILLARS === */
.pillars { display:grid; gap: 48px; }
@media (min-width:768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { text-align: left; }
.pillar-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem; font-weight: 600; color: var(--gold);
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.pillar h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; color: var(--ink); line-height: 1.2;
}
.pillar p { color: var(--ink-2); font-size: 1rem; margin-bottom: 16px; }
.pillar .proof { font-size: 0.9rem; color: var(--teal); font-weight: 500; padding-top: 12px; border-top: 1px solid var(--border-soft); }

/* === PRODUCTS === */
.product-grid { display:grid; gap: 32px; }
@media (min-width:768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; transition: all .25s; box-shadow: var(--shadow);
}
.product-card:hover { border-color: var(--teal); box-shadow: var(--shadow-hover); }
.product-card .tag { display:inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.product-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem; font-weight: 600; margin-bottom: 12px; color: var(--ink);
}
.product-card p { color: var(--ink-2); font-size: 1rem; margin-bottom: 20px; }
.product-card .features { list-style: none; display:flex; flex-direction:column; gap:8px; margin-bottom: 24px; }
.product-card .features li { font-size: 0.92rem; color: var(--ink-2); display:flex; gap:10px; align-items:start; }
.product-card .features li::before { content:'\2014'; color: var(--teal); font-weight:600; }
.product-card .link { font-weight: 600; color: var(--teal); font-size: 0.95rem; }

/* === QUOTE === */
.quote-section { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
blockquote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-style: italic; font-weight: 400;
  line-height: 1.3; color: var(--ink); max-width: 900px; margin: 0 auto; text-align: center;
  padding: 64px 24px; position: relative;
}
blockquote::before { content: '\201C'; font-size: 4rem; color: var(--gold); position: absolute; top: 0; left: 50%; transform: translateX(-50%); opacity: 0.3; }
blockquote cite { display:block; font-family: 'Inter', sans-serif; font-style: normal; font-size: 1rem; font-weight: 500; color: var(--ink-3); margin-top: 24px; }

/* === CTA BAND === */
.cta-band {
  text-align: center;
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cta-band h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 20px; color: var(--ink);
}
.cta-band p { color: var(--ink-2); font-size: 1.15rem; margin-bottom: 36px; }

/* === FOOTER === */
.footer {
  background: var(--ivory);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid { display:grid; gap:40px; grid-template-columns: 1fr; }
@media (min-width:768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { display:flex; flex-direction:column; gap:16px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-2); max-width: 340px; line-height: 1.6; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col a { font-size: 0.9rem; color: var(--ink-2); }
.footer-col a:hover { color: var(--teal); text-decoration:none; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; font-size: 0.82rem; color: var(--ink-3); }

/* === RESPONSIVE === */
@media (max-width:767px) {
  .hero { padding: 120px 0 64px; }
  section { padding: 64px 0; }
  .nav-cta { display:none; }
}