/* ═══════════════════════════════════════════════════
   Smart Home Hellas — v3 Premium Design System
   ═══════════════════════════════════════════════════ */

/* ── Inline SVG icons ─────────────────────────────── */
svg.icon {
  display: inline-block;
  width: 1em; height: 1em;
  stroke: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
}
.spec-icon svg.icon   { width: 2rem;   height: 2rem;   color: var(--clr-accent); }
.info-icon svg.icon   { width: 1.5rem; height: 1.5rem; color: var(--clr-accent); }
.blog-card-img svg.icon { width: 3.5rem; height: 3.5rem; color: var(--clr-accent); }
.product-img svg.icon { width: 3rem;   height: 3rem;   color: var(--clr-accent); opacity: .6; }
svg.icon.ico          { width: 1rem;   height: 1rem;   margin-right: .3rem; color: var(--clr-accent); }
svg.icon.nav-ico      { width: .9rem;  height: .9rem;  margin-right: .2rem; }

/* ── Tokens ───────────────────────────────────────── */
:root {
  /* Brand — matches logo gradient */
  --brand:      #3d3fb0;
  --brand-dk:   #3234a0;
  --cyan:       #00c8ff;
  --grad:       linear-gradient(135deg, #3d3fb0 0%, #00c8ff 100%);
  --grad-text:  linear-gradient(135deg, #3d3fb0 0%, #00aadd 100%);
  --brand-glow: rgba(61,63,176,.18);
  --cyan-glow:  rgba(0,200,255,.15);

  /* Neutrals */
  --ink:        #0a0a0b;
  --ink-2:      #18181c;
  --ink-3:      #26262c;
  --smoke:      #f5f5f3;
  --muted:      #6b7280;
  --border:     rgba(0,0,0,.10);
  --border-dk:  rgba(255,255,255,.08);

  /* Text */
  --text:       #0a0a0b;
  --text-inv:   #f5f5f3;
  --text-muted: #6b7280;

  /* Fonts */
  --ff-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadow */
  --sh-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --sh-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  /* Legacy compat */
  --dark:   var(--ink);
  --gray:   var(--muted);
  --lgray:  #d1d5db;
  --blue:   var(--brand);
  --orange: var(--brand);
  --radius: var(--r-md);
  --focus:  0 0 0 2px #fff, 0 0 0 4px var(--brand);

  /* Alias for inner pages */
  --clr-accent:  var(--brand);
  --clr-dark:    var(--ink);
  --clr-text:    var(--text);
  --clr-muted:   var(--muted);
  --clr-surface: var(--smoke);
  --clr-border:  #e2e8f0;
  --radius-lg:   var(--r-lg);
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ff-body); color: var(--text); background: #fff; overflow-x: hidden; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

/* ── Skip link ────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-md);
  font-weight: 600; font-size: .9rem; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

/* ── Layout ───────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 88px 0; }
.center     { text-align: center; }
.lead       { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto 36px; line-height: 1.8; }
.subtitle   { font-size: 1rem; color: var(--muted); margin-bottom: 52px; text-align: center; }

h1 { font-family: var(--ff-display); font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-family: var(--ff-display); font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }

/* ── Grids ────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
@media(max-width:900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 26px;
  border-radius: var(--r-md); border: 1.5px solid transparent;
  font-weight: 600; font-size: .9rem; font-family: var(--ff-body);
  cursor: pointer; transition: all .18s; letter-spacing: -.01em;
  text-decoration: none;
}
.btn-primary {
  background: var(--grad); color: #fff; border-color: transparent;
  background-size: 200% 200%;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px var(--brand-glow); }

.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--lgray);
}
.btn-secondary:hover { border-color: var(--text); background: var(--smoke); }

.btn-orange { background: var(--grad); color: #fff; border-color: transparent; }
.btn-orange:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 20px var(--brand-glow); }

.btn-outline {
  background: transparent; color: var(--text); border-color: var(--lgray);
  font-size: .85rem; min-height: 40px; padding: 9px 20px;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 26px; border-radius: var(--r-md);
  font-weight: 600; font-size: .9rem; font-family: var(--ff-body);
  cursor: pointer; transition: all .18s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* dark bg variants */
.btn-secondary-inv {
  background: transparent; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 26px; border-radius: var(--r-md);
  font-weight: 600; font-size: .9rem; font-family: var(--ff-body);
  cursor: pointer; transition: all .18s;
}
.btn-secondary-inv:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-fallback { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  color: var(--muted); padding: 6px 12px; border-radius: var(--r-sm);
  min-height: 36px; display: inline-flex; align-items: center;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--smoke); }
.nav-links a.active {
  color: var(--brand);
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav-cta {
  background: var(--ink) !important; color: #fff !important;
  padding: 6px 14px !important; border-radius: var(--r-sm);
  font-weight: 600 !important; font-size: .78rem !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--brand) !important; }

/* Push phone CTAs to the right */
.nav-links li:has(a.nav-cta) { margin-left: auto; }
.nav-links li:has(a.nav-cta) ~ li:has(a.nav-cta) { margin-left: 0; }
.nav-links li:has(a.nav-cta) ~ li.nav-hours { margin-left: 0; }

.nav-hours {
  font-size: .72rem; font-weight: 500;
  color: var(--muted);
  padding: 0 8px;
  white-space: nowrap;
  display: flex; align-items: center;
}

.lang-sw { display: flex; gap: 3px; }
.lang-sw a {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  min-width: 34px; min-height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--muted);
  border: 1px solid transparent; transition: all .15s;
}
.lang-sw a.active { background: var(--brand); color: #fff; }
.lang-sw a:not(.active):hover { border-color: var(--lgray); color: var(--text); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .22s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media(max-width:860px) {
  .nav-links {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--sh-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 46px; border-radius: var(--r-sm); padding: 0 12px; }
  .nav-toggle { display: flex; }
  .nav-hours { display: none; }
  .nav-cta { font-size: 0 !important; padding: 6px 8px !important; }
  .nav-cta svg.icon { width: 1rem; height: 1rem; margin: 0; }
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--text-inv);
  padding: 100px 28px 88px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}
/* subtle noise texture */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}
/* accent glow */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,200,255,.08) 0%, rgba(61,63,176,.12) 40%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-device  { position: relative; z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  padding: 5px 14px; border-radius: 99px;
  font-size: .75rem; letter-spacing: .04em; margin-bottom: 28px; font-weight: 500;
}
.hero-tagline {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.hero .lead { color: rgba(255,255,255,.6); margin: 0 0 40px; text-align: left; max-width: none; line-height: 1.75; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero .btn-orange { box-shadow: 0 4px 20px var(--brand-glow); }
.hero .btn-secondary {
  background: transparent; color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.18);
}
.hero .btn-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: #fff; }

.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust li {
  font-size: .8rem; color: rgba(255,255,255,.45);
  display: flex; align-items: center; gap: 6px;
}
.hero-trust li::before { content: '✓'; color: #6ee7b7; font-weight: 700; font-size: .7rem; }

/* Device widget */
.hero-device {
  background: #0d0d12;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 32px 64px rgba(0,0,0,.5);
}
.hero-device::before {
  content: '';
  position: absolute; top: 0; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .6;
}
.device-hdr {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.device-name {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .62rem; color: rgba(255,255,255,.3); letter-spacing: .1em;
}
.dot-live {
  width: 8px; height: 8px; background: #22c55e;
  border-radius: 50%; animation: pulse 2s infinite;
  box-shadow: 0 0 6px #22c55e;
}
.s-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .82rem;
}
.s-row:last-of-type { border-bottom: none; }
.s-label { color: rgba(255,255,255,.35); }
.s-val { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 600; color: rgba(255,255,255,.8); font-size: .88rem; }
.s-val.hot { color: var(--brand); }
.s-val.ok  { color: #6ee7b7; }
.relays {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 6px; margin-top: 18px;
}
.relay {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-sm); padding: 8px 4px;
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .6rem; color: rgba(255,255,255,.25);
  letter-spacing: .04em;
}
.relay.on {
  border-color: rgba(61,63,176,.4);
  color: var(--brand);
  background: rgba(61,63,176,.06);
}

@media(max-width:960px) { .hero { grid-template-columns: 1fr; min-height: auto; } .hero-device { display: none; } }
@media(max-width:580px) { .hero { padding: 80px 20px 72px; } }

/* ── WHY SECTION ──────────────────────────────────── */
.why { background: var(--smoke); }
.card-icon {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: box-shadow .22s, border-color .22s, transform .22s;
}
.card-icon:hover {
  box-shadow: var(--sh-md);
  border-color: rgba(61,63,176,.25);
  transform: translateY(-3px);
}
.icon-lg { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.card-icon h3 { letter-spacing: -.01em; margin-bottom: 8px; }
.card-icon p { color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ── PRODUCTS ─────────────────────────────────────── */
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.product-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: rgba(61,63,176,.2);
}
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: .96rem; margin-bottom: 8px; letter-spacing: -.01em; }
.product-card p { color: var(--muted); font-size: .86rem; flex: 1; line-height: 1.65; margin-bottom: 18px; }
.product-badge {
  display: inline-block;
  background: rgba(61,63,176,.08);
  color: var(--brand);
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
  border: 1px solid rgba(61,63,176,.2);
}

/* ── USE CASES ────────────────────────────────────── */
.usecases { background: var(--smoke); }
.usecase-card {
  padding: 26px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: box-shadow .22s, transform .22s;
}
.usecase-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.usecase-icon { font-size: 1.6rem; margin-bottom: 12px; }
.usecase-card h3 { letter-spacing: -.01em; }
.usecase-card p { color: var(--muted); font-size: .87rem; line-height: 1.65; margin: 0; }

/* ── YOUTUBE BAND ─────────────────────────────────── */
.yt-band {
  background: var(--ink-2);
  color: #fff;
  padding: 80px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.yt-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(61,63,176,.1) 0%, transparent 70%);
  pointer-events: none;
}
.yt-band h2 { color: #fff; position: relative; margin-bottom: 12px; }
.yt-band p { color: rgba(255,255,255,.55); margin-bottom: 32px; font-size: 1rem; position: relative; }

/* ── CONTACT CTA ──────────────────────────────────── */
.contact-cta {
  padding: 88px 28px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--border);
}
.contact-cta h2 { margin-bottom: 12px; }

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.35);
  padding: 32px 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-logo img { height: 28px; filter: brightness(0) invert(1); opacity: .45; }
.footer-logo-fallback {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem;
  color: rgba(255,255,255,.4);
}
.footer p { font-size: .76rem; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-links a {
  font-size: .76rem; color: rgba(255,255,255,.35);
  min-height: 36px; display: inline-flex; align-items: center;
  padding: 0 10px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
@media(max-width:640px) { .footer { flex-direction: column; text-align: center; } .footer-links { justify-content: center; } }

/* ── FORMS ────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .83rem; margin-bottom: 6px; letter-spacing: .01em; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--lgray); border-radius: var(--r-md);
  font-family: var(--ff-body); font-size: .92rem; color: var(--text);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand); outline: none;
  box-shadow: 0 0 0 3px rgba(61,63,176,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ── FAQ ──────────────────────────────────────────── */
.faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  font-family: var(--ff-body); font-size: .95rem; font-weight: 600;
  color: var(--text); padding: 18px 20px;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; transition: background .15s;
}
.faq-q:hover { background: var(--smoke); }
.faq-q::after {
  content: '+'; font-size: 1.3rem; font-weight: 300;
  color: var(--muted); flex-shrink: 0; transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-item.open .faq-q { background: var(--smoke); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); line-height: 1.8; font-size: .92rem; }
.faq-item.open .faq-a { display: block; }

/* ── PAGE HERO (inner pages) ──────────────────────── */
.page-hero {
  background: var(--ink); color: #fff;
  padding: 80px 28px 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -160px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,63,176,.1) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); position: relative; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.55); font-size: 1.05rem; max-width: 560px; position: relative; }

/* ── CARDS (new pages) ────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem 1.5rem;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: rgba(61,63,176,.2); }
.card .card-icon { font-size: 1.8rem; margin-bottom: .7rem; display: block; background: none; border: none; padding: 0; border-radius: 0; box-shadow: none; }
.card .card-icon:hover { box-shadow: none; transform: none; border-color: transparent; }
.card h3 { font-size: .97rem; margin-bottom: .4rem; }
.card p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ── shh-nav ──────────────────────────────────────── */
.shh-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.shh-nav .nav-logo { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.shh-nav .nav-logo img { height: 40px; width: auto; }
.shh-nav .nav-logo-fallback { display: flex; align-items: center; gap: 8px; }
.shh-nav .logo-icon { font-size: 1.5rem; }
.shh-nav .logo-text { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; color: var(--text); }

.shh-nav .nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center;
}
.shh-nav .nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: var(--r-sm);
  min-height: 36px; display: inline-flex; align-items: center;
  transition: color .15s, background .15s; white-space: nowrap;
}
.shh-nav .nav-links a:hover,
.shh-nav .nav-links a[aria-current="page"] { color: var(--text); background: var(--smoke); }
.shh-nav .nav-links .nav-cta {
  background: var(--ink) !important; color: #fff !important;
  padding: 6px 14px !important; border-radius: var(--r-sm);
  font-weight: 600 !important; font-size: .78rem !important;
}
.shh-nav .nav-links .nav-cta:hover { background: var(--brand) !important; }
.shh-nav .nav-links li:has(a.nav-cta) { margin-left: auto; }
.shh-nav .nav-links li:has(a.nav-cta) ~ li:has(a.nav-cta) { margin-left: 0; }
.shh-nav .nav-links li:has(a.nav-cta) ~ li.nav-hours { margin-left: 0; }
.shh-nav .nav-links .nav-hours {
  font-size: .72rem; font-weight: 500; color: var(--muted);
  padding: 0 8px; white-space: nowrap;
  display: flex; align-items: center;
}

.shh-nav .lang-sw { display: flex; gap: 3px; flex-shrink: 0; }
.shh-nav .lang-sw a {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  min-width: 34px; min-height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--muted);
  border: 1px solid transparent; transition: all .15s;
}
.shh-nav .lang-sw a.active { background: var(--brand); color: #fff; }
.shh-nav .lang-sw a:not(.active):hover { border-color: var(--lgray); color: var(--text); }

.shh-nav .nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0;
}
.shh-nav .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all .22s; border-radius: 2px; }
.shh-nav .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.shh-nav .nav-toggle.open span:nth-child(2) { opacity: 0; }
.shh-nav .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .shh-nav .nav-links {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--sh-lg);
    justify-content: flex-start;
  }
  .shh-nav .nav-links.open { display: flex; }
  .shh-nav .nav-links a { min-height: 46px; border-radius: var(--r-sm); padding: 0 12px; }
  .shh-nav .nav-toggle { display: flex; }
  .shh-nav .nav-hours { display: none; }
  .shh-nav .nav-cta { font-size: 0 !important; padding: 6px 8px !important; }
  .shh-nav .nav-cta svg.icon { width: 1rem; height: 1rem; margin: 0; }
}

/* ── shh-footer ───────────────────────────────────── */
.shh-footer {
  background: var(--ink); color: rgba(255,255,255,.35);
  padding: 32px 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.shh-footer a { color: inherit; text-decoration: none; }
.shh-footer p { font-size: .76rem; }
.shh-footer .footer-links { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.shh-footer .footer-links a {
  font-size: .76rem; color: rgba(255,255,255,.35);
  min-height: 36px; display: inline-flex; align-items: center;
  padding: 0 10px; border-radius: var(--r-sm);
  transition: color .15s, background .15s;
}
.shh-footer .footer-links a:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
@media (max-width: 640px) { .shh-footer { flex-direction: column; text-align: center; } .shh-footer .footer-links { justify-content: center; } }

/* ── ANIMATIONS ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ═══════════════════════════════════════════════════
   v4 IMPROVEMENTS
   ═══════════════════════════════════════════════════ */

/* ── 1. Hero mesh animated background ────────────── */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-mesh::before,
.hero-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: meshFloat 12s ease-in-out infinite alternate;
}
.hero-mesh::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,63,176,.5) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation-duration: 14s;
}
.hero-mesh::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,200,255,.3) 0%, transparent 70%);
  bottom: -150px; left: 5%;
  animation-duration: 10s;
  animation-delay: -5s;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-20px, 20px) scale(.95); }
  100% { transform: translate(20px, 10px) scale(1.04); }
}
/* extra blob via JS-free trick */
.hero-blob {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,170,220,.18) 0%, transparent 70%);
  filter: blur(60px);
  top: 40%; left: 45%;
  animation: meshFloat 16s ease-in-out infinite alternate-reverse;
  pointer-events: none; z-index: 0;
}

/* ── 2. Marquee tech-stack strip ──────────────────── */
.marquee-wrap {
  background: var(--ink-2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--ink-2), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--ink-2), transparent); }

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
}
.marquee-item::after {
  content: '·';
  color: rgba(255,255,255,.15);
  font-size: 1rem;
}
.marquee-item span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 3. Stats band ────────────────────────────────── */
.stats-band {
  background: var(--smoke);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media(max-width:700px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

.stat-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
@media(max-width:700px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
}

.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── 4. Split section header ──────────────────────── */
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 52px;
}
@media(max-width:700px) { .section-header { grid-template-columns: 1fr; gap: 1rem; } }
.section-header h2 { margin: 0; }
.section-header .section-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  padding-bottom: 4px;
}
.section-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(61,63,176,.08);
  border: 1px solid rgba(61,63,176,.15);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* ── 5. Gradient border card hover ───────────────── */
.card-icon,
.product-card,
.usecase-card {
  position: relative;
}
.card-icon::before,
.product-card::before,
.usecase-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card-icon:hover::before,
.product-card:hover::before,
.usecase-card:hover::before { opacity: 1; }

/* remove old border-color hover (replaced by gradient border) */
.card-icon:hover { border-color: transparent; }
.product-card:hover { border-color: transparent; }
.usecase-card:hover { border-color: transparent; }

/* ── Accessibility ────────────────────────────────── */
@media (forced-colors: active) { .btn, .card-icon, .product-card { border: 2px solid ButtonText; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .hero-mesh::before, .hero-mesh::after, .hero-blob { animation: none; }
}

/* ═══════════════════════════════════════════════════
   v5 IMPROVEMENTS
   ═══════════════════════════════════════════════════ */

/* ── 1. Icon wrap — gradient pill background ──────── */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61,63,176,.12) 0%, rgba(0,200,255,.08) 100%);
  border: 1px solid rgba(61,63,176,.12);
  font-size: 1.55rem;
  margin-bottom: 18px;
  transition: background .2s, border-color .2s;
}
.card-icon:hover .icon-wrap,
.usecase-card:hover .icon-wrap {
  background: linear-gradient(135deg, rgba(61,63,176,.2) 0%, rgba(0,200,255,.14) 100%);
  border-color: rgba(61,63,176,.25);
}

/* ── 2. YouTube band — split layout ───────────────── */
.yt-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
@media(max-width:700px) {
  .yt-split { flex-direction: column; text-align: center; }
  .yt-split .btn { width: 100%; max-width: 320px; justify-content: center; }
}
.yt-band { padding: 72px 28px; }
.yt-band .container { position: relative; }
.yt-split h2 { margin: 0 0 8px; }
.yt-split p { margin: 0; color: rgba(255,255,255,.55); font-size: 1rem; max-width: 480px; }
.yt-split .btn { flex-shrink: 0; min-width: 200px; font-size: .95rem; min-height: 52px; }

/* ── 3. Dark contact CTA ──────────────────────────── */
.contact-cta {
  padding: 96px 28px;
  background: var(--ink-2);
  border-top: none;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(61,63,176,.18) 0%, transparent 70%);
  pointer-events: none;
}
.contact-cta h2 { color: #fff; position: relative; }
.contact-cta p { color: rgba(255,255,255,.5); margin-bottom: 28px; position: relative; }
.contact-cta .btn-secondary {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.8);
}
.contact-cta .btn-secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* ── 4. Staggered card reveal ─────────────────────── */
.grid-3 > .reveal:nth-child(2),
.grid-4 > .reveal:nth-child(2) { transition-delay: .07s; }
.grid-3 > .reveal:nth-child(3),
.grid-4 > .reveal:nth-child(3) { transition-delay: .14s; }
.grid-4 > .reveal:nth-child(4) { transition-delay: .21s; }
.grid-3 > .reveal:nth-child(4) { transition-delay: .07s; }
.grid-3 > .reveal:nth-child(5) { transition-delay: .14s; }
.grid-3 > .reveal:nth-child(6) { transition-delay: .21s; }

/* ── Hero cycling text ────────────────────────────── */
.hero-cycle {
  display: block;
  position: relative;
  height: 1.2em;
  overflow: visible;
}
.hero-cycle span {
  display: block;
  position: absolute;
  top: 0; left: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  opacity: 0;
  transform: translateY(30px);
  animation: cycleWord 12s infinite;
  white-space: nowrap;
}
.hero-cycle span:nth-child(1) { animation-delay: 0s; }
.hero-cycle span:nth-child(2) { animation-delay: 3s; }
.hero-cycle span:nth-child(3) { animation-delay: 6s; }
.hero-cycle span:nth-child(4) { animation-delay: 9s; }

@keyframes cycleWord {
  0%   { opacity: 0; transform: translateY(30px); }
  8%   { opacity: 1; transform: translateY(0); }
  25%  { opacity: 1; transform: translateY(0); }
  33%  { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* ── Reviews ──────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media(max-width:900px) { .reviews-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .22s, transform .22s;
}
.review-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.review-text { font-size: .9rem; color: var(--muted); line-height: 1.7; flex: 1; font-style: italic; }
.review-author { font-size: .82rem; font-weight: 600; color: var(--text); }

/* ── 5. Section title centered variant ────────────── */
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--grad);
  border-radius: 3px;
  margin: 14px auto 0;
}
