/*
Theme Name: AI Receptionist Landing
Theme URI: https://bigapplewebdevelopers.com/
Author: Big Apple Web Developers
Author URI: https://bigapplewebdevelopers.com/
Description: Marketing landing theme for the AI Receptionist WordPress plugin — a refined "Voice Console" aesthetic with an animated live-call hero, call-flow, features, and a hosted-relay section. Classic theme; set a static front page or it renders by default.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: air-landing
*/

:root {
    --font-display: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
    --font-sans: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --bg: #090b0e;
    --surface-1: #12151b;
    --surface-2: #181c24;
    --surface-3: #20252f;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);

    --text: #e8eaee;
    --text-2: #a3aab5;
    --text-3: #6b7079;

    --accent: #2fe6c8;
    --accent-strong: #5cf0d8;
    --accent-2: #5aa0ff;
    --accent-soft: rgba(47,230,200,0.12);
    --accent-ink: #03110d;
    --glow: rgba(47,230,200,0.45);

    --success: #34d399;
    --warn: #f2b33d;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 26px;
    --grid-line: rgba(255,255,255,0.022);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
  }
  /* Atmosphere: engineering dot-grid + gradient mesh */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
      radial-gradient(var(--grid-line) 1px, transparent 1px),
      radial-gradient(1400px 620px at 84% -8%, rgba(47,230,200,0.08), transparent 60%),
      radial-gradient(1100px 560px at -6% 0%, rgba(90,160,255,0.06), transparent 55%);
    background-size: 28px 28px, 100% 100%, 100% 100%;
  }
  /* Fine grain */
  body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
  }

  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

  /* ---------- Nav ---------- */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px) saturate(1.1);
    background: linear-gradient(180deg, rgba(9,11,14,0.82), rgba(9,11,14,0.5));
    border-bottom: 1px solid var(--border);
  }
  .nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
  .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
  .brand-mark {
    width: 30px; height: 30px; border-radius: 9px; flex: none; position: relative;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 1px var(--border-strong), 0 8px 26px -8px var(--glow);
    display: grid; place-items: center; overflow: hidden;
  }
  .brand-mark::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); z-index: 1; }
  .brand-mark::after {
    content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%;
    border: 1.6px solid var(--accent-ink); animation: signal 2.6s ease-out infinite;
  }
  @keyframes signal { 0%{width:6px;height:6px;opacity:.9} 70%{width:26px;height:26px;opacity:0} 100%{opacity:0} }
  .nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text-2); }
  .nav-links a:hover { color: var(--text); }
  .btn {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    font-family: var(--font-sans); font-weight: 600; font-size: 14.5px; line-height: 1;
    padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
    transition: transform .12s ease, filter .15s ease, background .15s ease, border-color .15s ease;
  }
  .btn--primary { background: linear-gradient(140deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow); }
  .btn--primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
  .btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
  .btn--ghost:hover { background: var(--surface-2); }
  .btn--sm { padding: 9px 15px; font-size: 13.5px; }
  .nav .btn { margin-left: 8px; }

  /* ---------- Kicker / headings ---------- */
  .kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  }
  .kicker::before { content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
  h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
  .section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
  .lede { color: var(--text-2); font-size: 18px; max-width: 60ch; }

  /* ---------- Hero ---------- */
  .hero { padding: 72px 0 60px; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; margin: 20px 0 0; }
  .hero h1 .glow { color: var(--accent); text-shadow: 0 0 36px var(--glow); }
  .hero .lede { margin-top: 22px; font-size: 19px; }
  .hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
  .trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
  .trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
  .trust span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }

  /* ---------- Live call card ---------- */
  .call-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 36%), var(--surface-1);
    border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
    overflow: hidden;
  }
  .call-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .call-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--success); }
  .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: pulse 1.8s ease-out infinite; }
  @keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5)} 70%{box-shadow:0 0 0 9px transparent} 100%{box-shadow:0 0 0 0 transparent} }
  .call-meta { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
  .wave { display: flex; align-items: center; gap: 3px; height: 40px; padding: 14px 20px 4px; }
  .wave i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 2px; height: 20%; animation: wv 1.1s ease-in-out infinite; opacity: .85; }
  @keyframes wv { 0%,100%{height:18%} 50%{height:90%} }
  .transcript { padding: 8px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
  .msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
  .msg .who { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
  .msg.caller { align-self: flex-start; background: var(--surface-3); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
  .msg.agent { align-self: flex-end; background: var(--accent-soft); border: 1px solid rgba(47,230,200,0.25); border-bottom-right-radius: 5px; }
  .msg.agent .who { color: var(--accent); }

  /* ---------- Reusable section ---------- */
  section { padding: 64px 0; }
  .section-head { max-width: 64ch; margin-bottom: 44px; }
  .section-head h2 { margin-top: 14px; }
  .section-head p { color: var(--text-2); font-size: 17px; margin-top: 14px; }

  /* ---------- Flow ---------- */
  .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .flow-step { position: relative; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
  .flow-step::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }
  .flow-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
  .flow-step h3 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -0.02em; }
  .flow-step p { color: var(--text-2); font-size: 14.5px; margin: 0; }
  .flow-step .arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--text-3); z-index: 2; }
  .flow-step:last-child .arrow { display: none; }

  /* ---------- Features ---------- */
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feature { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .feature:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
  .feature .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent-soft), transparent); border: 1px solid var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
  .feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
  .feature p { color: var(--text-2); font-size: 14.5px; margin: 0; }

  /* ---------- Deploy / hosted ---------- */
  .panel {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
    background: linear-gradient(150deg, rgba(47,230,200,0.06), rgba(90,160,255,0.04) 60%, transparent);
    border: 1px solid var(--border); border-radius: var(--r-xl); padding: 44px;
  }
  .panel h2 { font-size: clamp(26px,3.4vw,36px); font-weight: 700; }
  .panel p { color: var(--text-2); font-size: 16.5px; margin: 16px 0 0; }
  .panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
  .panel li { display: flex; gap: 11px; font-size: 15px; color: var(--text); }
  .panel li svg { flex: none; color: var(--accent); margin-top: 2px; }
  .stack-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; font-family: var(--font-mono); font-size: 13px; }
  .stack-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .stack-row:last-child { border-bottom: 0; }
  .stack-row .tag { color: var(--text-3); }
  .stack-row .val { color: var(--accent); }

  /* ---------- CTA band ---------- */
  .cta-band { text-align: center; padding: 80px 0; }
  .cta-band h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
  .cta-band p { color: var(--text-2); font-size: 18px; margin: 18px auto 0; max-width: 52ch; }
  .cta-band .hero-cta { justify-content: center; margin-top: 34px; }

  /* ---------- Footer ---------- */
  footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-3); font-size: 14px; }
  .foot-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .foot-links { display: flex; gap: 22px; margin-left: auto; }
  .foot-links a:hover { color: var(--text); }

  /* ---------- Reveal on scroll ---------- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  @media (max-width: 920px) {
    .hero-grid, .panel { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .flow-step .arrow { display: none; }
    .nav-links { display: none; }
  }
  @media (max-width: 560px) {
    .features, .flow { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
  }
