@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --cream: #fff8ef;
    --cream-2: #ffffff;
    --ink: #1b2340;
    --muted: #5b6480;
    --coral: #ff6b6b;
    --coral-dark: #e0514f;
    --cyan: #2fd1c5;
    --cyan-dark: #1fa89e;
    --yellow: #ffd23f;
    --yellow-dark: #e6ad1f;
    --card-bg: #ffffff;
    --card-border: rgba(27, 35, 64, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }

a { text-decoration: none; color: inherit; }

/* ---- Background animation canvas: drifting plug confetti ---- */

#cable-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

/* ---- Nav ---- */

nav {
    position: sticky;
    top: 0; left: 0;
    width: 100%;
    z-index: 50;
    box-sizing: border-box;
    padding: 22px 0;
    background: rgba(255, 248, 239, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: padding 250ms ease, background 250ms ease, box-shadow 250ms ease;
}

nav.nav-scrolled {
    padding: 12px 0;
    background: rgba(255, 248, 239, 0.95);
    box-shadow: 0 6px 24px rgba(27, 35, 64, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    nav, .logo, #buy_now_link, #buy_now_bottom, .card { transition: none; }
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: font-size 250ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav.nav-scrolled .logo { font-size: 1.25rem; }

.logo .accent { color: var(--coral); }

.logo-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: width 250ms ease, height 250ms ease;
}

nav.nav-scrolled .logo-mark { width: 16px; height: 16px; }

#buy_now_link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--coral), var(--yellow));
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    transition: padding 250ms ease, font-size 250ms ease, transform 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 4px 18px rgba(255, 107, 107, 0.3);
}

nav.nav-scrolled #buy_now_link {
    padding: 9px 18px;
    font-size: 0.85rem;
}

#buy_now_link:hover {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.45);
}

#buy_now_link:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

/* ---- Hero ---- */

.hero {
    position: relative;
    z-index: 2;
    padding: 11vh 24px 8vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.def {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 26px;
    line-height: 1.6;
}

.def .phon {
    color: var(--cyan-dark);
    font-style: italic;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 900px;
    color: var(--ink);
}

.hero h1 .accent { color: var(--coral); }

.hero p {
    margin-top: 22px;
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
}

.domain-pill {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(27, 35, 64, 0.06);
}

.dot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(47, 209, 197, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 209, 197, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(47, 209, 197, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 209, 197, 0); }
}

/* ---- Cable emblem: two plugs joined by a bouncy coiled cord ---- */

.cable-wrap {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.cable-emblem {
    width: min(320px, 82vw);
    height: auto;
}

.cable-emblem .plug {
    fill: var(--coral);
}

.cable-emblem .plug.plug-b {
    fill: var(--cyan);
}

.cable-emblem .cord {
    fill: none;
    stroke: var(--ink);
    stroke-width: 7;
    stroke-linecap: round;
    transform-origin: 150px 70px;
    animation: cordBounce 2.6s ease-in-out infinite;
}

.cable-emblem .spark {
    fill: var(--yellow);
}

@keyframes cordBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .cable-emblem .cord { animation: none; }
}

/* ---- Cards ---- */

.cards-section {
    position: relative;
    z-index: 2;
    padding: 30px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 38px 35px;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.card:nth-child(odd) { transform: rotate(-1deg); }
.card:nth-child(even) { transform: rotate(1deg); }

.card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 18px 36px rgba(27, 35, 64, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .card:nth-child(odd), .card:nth-child(even) { transform: none; }
    .card:hover { transform: translateY(-4px); }
}

.card .icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:nth-child(1) .icon { background: linear-gradient(135deg, var(--coral), var(--yellow)); }
.card:nth-child(2) .icon { background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); }
.card:nth-child(3) .icon { background: linear-gradient(135deg, var(--yellow), var(--coral)); }

.card .icon svg {
    width: 24px; height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--ink);
}

.card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.98rem;
}

@media (max-width: 600px) {
    .card { padding: 28px 24px; }
    .card:nth-child(odd), .card:nth-child(even) { transform: none; }
}

/* ---- CTA ---- */

.cta-section {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 24px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-status {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--cyan-dark);
    font-weight: 700;
    margin-bottom: 22px;
}

#buy_now_bottom {
    display: inline-block;
    padding: 20px 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--coral), var(--yellow));
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.35);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

#buy_now_bottom:hover {
    transform: translateY(-3px) scale(1.02) rotate(-1deg);
    box-shadow: 0 14px 38px rgba(255, 107, 107, 0.5);
}

#buy_now_bottom:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.signal-sub {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---- Footer ---- */
/* Footer markup is injected via SSI and can't be edited here - only spacing/contrast overrides live in this file. */

footer {
    position: relative;
    z-index: 2;
    background: var(--cream-2);
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--card-border);
}

footer a { color: var(--coral-dark); }

footer div { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 18px; }
    .logo { font-size: 1.15rem; }
    #buy_now_link { padding: 9px 16px; font-size: 0.8rem; }

    nav.nav-scrolled { padding: 8px 0; }
    nav.nav-scrolled .logo { font-size: 1rem; }
    nav.nav-scrolled #buy_now_link { padding: 7px 14px; font-size: 0.72rem; }

    .hero { padding-top: 13vh; }
    .hero p { font-size: 1rem; }
    .cards-section { padding: 24px 16px 70px; }
    .card { padding: 28px 24px; }
    #buy_now_bottom { padding: 16px 32px; font-size: 1rem; }
}
