/* ══════════════════════════════════════
   PlumberVoice Theme — Main Stylesheet
   Version: 1.0.0
══════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --navy:   #0a1628;
    --deep:   #0d1f3c;
    --blue:   #1a4480;
    --accent: #00c4ff;
    --gold:   #f5a623;
    --white:  #f9f9f7;
    --muted:  #8a9ab5;
    --card:   rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 5%;
    background: rgba(10,22,40,0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}
.nav-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: -0.5px;
    text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a:focus { color: var(--white); }

.nav-cta {
    background: var(--accent); color: var(--navy);
    padding: 0.6rem 1.4rem; border-radius: var(--radius-pill);
    font-size: 0.88rem; font-weight: 600; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(0,196,255,0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0,196,255,0.5); }

/* Burger — mobile only */
.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: transparent; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
    display: block; width: 24px; height: 2px;
    background: var(--white); border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 8rem 5% 5rem;
    position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(26,68,128,0.45) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(0,196,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,196,255,0.05) 0%, transparent 60%);
}
.grid-overlay {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* Rings */
.rings {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0; pointer-events: none;
}
.ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(0,196,255,0.12);
    transform: translate(-50%, -50%);
    animation: pulse-ring 4s ease-in-out infinite;
}
.ring:nth-child(1) { width: 320px; height: 320px; animation-delay: 0s; }
.ring:nth-child(2) { width: 520px; height: 520px; animation-delay: 0.8s; }
.ring:nth-child(3) { width: 720px; height: 720px; animation-delay: 1.6s; }
.ring:nth-child(4) { width: 920px; height: 920px; animation-delay: 2.4s; }
@keyframes pulse-ring {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.12; }
}

/* Mic icon */
.mic-icon {
    position: relative; z-index: 2;
    width: 80px; height: 80px; margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--blue), rgba(0,196,255,0.4));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px rgba(0,196,255,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
    animation: mic-float 3s ease-in-out infinite;
}
@keyframes mic-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.mic-icon svg { width: 36px; height: 36px; fill: var(--white); }

/* Sound waves */
.sound-waves {
    display: flex; gap: 4px; align-items: center; height: 28px;
    position: relative; z-index: 2; margin-bottom: 2rem;
}
.wave-bar {
    width: 3px; border-radius: 3px;
    background: var(--accent);
    animation: wave 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 20px; animation-delay: 0.15s; }
.wave-bar:nth-child(3) { height: 28px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.wave-bar:nth-child(5) { height: 14px; animation-delay: 0.6s; }
.wave-bar:nth-child(6) { height: 22px; animation-delay: 0.75s; }
.wave-bar:nth-child(7) { height: 10px; animation-delay: 0.9s; }
@keyframes wave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50%       { transform: scaleY(1);   opacity: 1; }
}

/* Badge */
.hero-badge {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(0,196,255,0.1); border: 1px solid rgba(0,196,255,0.25);
    border-radius: var(--radius-pill); padding: 0.4rem 1.1rem; margin-bottom: 1.8rem;
    font-size: 0.78rem; font-weight: 500; color: var(--accent); letter-spacing: 0.08em;
    text-transform: uppercase;
}
.badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Hero text */
.hero h1 {
    position: relative; z-index: 2;
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.1; letter-spacing: -1px;
    margin-bottom: 1.5rem; max-width: 860px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero > p {
    position: relative; z-index: 2;
    font-size: 1.1rem; color: var(--muted); line-height: 1.7;
    max-width: 520px; margin-bottom: 3rem;
}

/* Buttons */
.hero-btns {
    position: relative; z-index: 2;
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--accent); color: var(--navy);
    padding: 0.95rem 2.2rem; border-radius: var(--radius-pill);
    font-size: 1rem; font-weight: 600; text-decoration: none;
    box-shadow: 0 0 35px rgba(0,196,255,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: btn-pulse 3s ease-in-out infinite;
}
@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 35px rgba(0,196,255,0.4); }
    50%       { box-shadow: 0 0 55px rgba(0,196,255,0.65); }
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    border: 1px solid var(--border); color: var(--white);
    padding: 0.95rem 2.2rem; border-radius: var(--radius-pill);
    font-size: 1rem; font-weight: 500; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); background: var(--card); }

/* Trust bar */
.hero-trust {
    position: relative; z-index: 2;
    margin-top: 3.5rem;
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.trust-stat { text-align: center; }
.trust-stat strong {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 2rem; color: var(--white);
}
.trust-stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.divider-v { width: 1px; height: 40px; background: var(--border); }

/* ══════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════ */
section { padding: 6rem 5%; }

.section-label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
}
.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 1rem;
}
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 480px; }

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.how-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center; max-width: 1100px; margin: 0 auto;
}
.steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.step {
    display: flex; gap: 1.2rem; align-items: flex-start;
    padding: 1.4rem; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    transition: border-color 0.3s;
    cursor: default;
}
.step:hover { border-color: rgba(0,196,255,0.3); }
.step-num {
    min-width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), rgba(0,196,255,0.3));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: var(--accent);
    box-shadow: 0 0 15px rgba(0,196,255,0.15);
    flex-shrink: 0;
}
.step-body h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.step-body p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; align-items: center; position: relative; }
.phone {
    width: 260px;
    background: linear-gradient(160deg, #1a2d50 0%, #0a1628 100%);
    border-radius: 36px; padding: 2rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 50px rgba(0,196,255,0.1);
    position: relative; z-index: 2;
}
.phone-top { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.phone-notch { width: 80px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.phone-status { font-size: 0.7rem; color: var(--accent); text-align: center; margin-bottom: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.phone-avatar {
    width: 64px; height: 64px; margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--blue), rgba(0,196,255,0.4));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; box-shadow: 0 0 25px rgba(0,196,255,0.25);
}
.phone-name { text-align: center; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.phone-role { text-align: center; font-size: 0.72rem; color: var(--muted); margin-bottom: 1.4rem; }
.chat-bubble {
    border-radius: 12px 12px 12px 4px;
    padding: 0.7rem 1rem;
    font-size: 0.78rem; line-height: 1.5; margin-bottom: 0.6rem;
    max-width: 90%;
}
.bubble-ai  { background: rgba(0,196,255,0.12); border: 1px solid rgba(0,196,255,0.2); color: var(--white); }
.bubble-user { background: rgba(255,255,255,0.07); margin-left: auto; border-radius: 12px 12px 4px 12px; color: var(--muted); }
.wave-line { display: flex; align-items: center; gap: 3px; padding: 0.6rem 0; justify-content: center; }
.wl { width: 3px; background: var(--accent); border-radius: 3px; animation: wave 1.2s ease-in-out infinite; }
.wl:nth-child(1){height:8px;animation-delay:0s}
.wl:nth-child(2){height:16px;animation-delay:0.1s}
.wl:nth-child(3){height:22px;animation-delay:0.2s}
.wl:nth-child(4){height:16px;animation-delay:0.3s}
.wl:nth-child(5){height:8px;animation-delay:0.4s}

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features-section { background: var(--deep); }
.features-header { text-align: center; margin-bottom: 4rem; }
.features-header .section-sub { margin: 0 auto; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover { border-color: rgba(0,196,255,0.3); transform: translateY(-4px); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), rgba(0,196,255,0.25));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem; font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(0,196,255,0.12);
}
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════════════
   PRICING
══════════════════════════════════════ */
.section-pricing { }
.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; max-width: 820px; margin: 0 auto;
}
.price-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.5rem;
    position: relative; transition: border-color 0.3s;
}
.price-card.featured {
    border-color: rgba(0,196,255,0.4);
    background: linear-gradient(160deg, rgba(0,196,255,0.06) 0%, transparent 60%);
}
.price-popular {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--navy);
    font-size: 0.7rem; font-weight: 700; padding: 0.25rem 1rem;
    border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.08em;
    white-space: nowrap;
}
.price-name   { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.price-amount { font-family: 'Instrument Serif', serif; font-size: 3rem; line-height: 1; margin-bottom: 0.3rem; }
.price-amount sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem; }
.price-period { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.8rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.price-features li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.87rem; }
.check { color: var(--accent); font-size: 1rem; }
.price-btn {
    display: block; text-align: center;
    padding: 0.85rem; border-radius: var(--radius-pill);
    font-size: 0.9rem; font-weight: 600; text-decoration: none;
    transition: transform 0.2s;
}
.price-btn:hover { transform: translateY(-1px); }
.btn-filled  { background: var(--accent); color: var(--navy); box-shadow: 0 0 25px rgba(0,196,255,0.3); }
.btn-outline { border: 1px solid var(--border); color: var(--white); }
.btn-outline:hover { border-color: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════
   DEMO CTA
══════════════════════════════════════ */
.demo-section {
    background: linear-gradient(135deg, #0d1f3c 0%, #091524 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center; position: relative; overflow: hidden;
}
.demo-section::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,196,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.demo-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem; position: relative; z-index: 1;
}
.demo-section > p {
    color: var(--muted); margin-bottom: 2.5rem;
    font-size: 1.05rem; line-height: 1.7;
    position: relative; z-index: 1;
}
.demo-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: var(--accent); color: var(--navy);
    padding: 1.1rem 2.6rem; border-radius: var(--radius-pill);
    font-size: 1.05rem; font-weight: 700; text-decoration: none;
    box-shadow: 0 0 50px rgba(0,196,255,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: btn-pulse 3s ease-in-out infinite;
    border: none; cursor: pointer;
}
.demo-btn:hover { transform: translateY(-3px) scale(1.03); }
.demo-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Demo form */
.demo-form { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.form-group label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.form-group input {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.75rem 1rem;
    color: var(--white); font-family: inherit; font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-group input::placeholder { color: var(--muted); }
.demo-form .demo-btn { margin-top: 1.5rem; width: 100%; justify-content: center; }
.form-status { margin-top: 1rem; font-size: 0.88rem; min-height: 1.2em; }
.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#site-footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: 'Instrument Serif', serif; font-size: 1.3rem; }
.footer-logo span { color: var(--accent); }
#site-footer > p { color: var(--muted); font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.8rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #site-nav { padding: 1rem 4%; }
    .nav-links { display: none; }
    .nav-burger { display: flex; }

    /* Mobile menu open state */
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10,22,40,0.97);
        padding: 1.5rem 5%; border-bottom: 1px solid var(--border);
        gap: 1rem;
    }

    .how-grid { grid-template-columns: 1fr; gap: 3rem; }
    .phone-wrap { order: -1; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .form-row { grid-template-columns: 1fr; }

    #site-footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-trust { gap: 1rem; }
    .divider-v { display: none; }
}

/* ══════════════════════════════════════
   ACCESSIBILITY — reduced motion
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
