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

:root {
    --bg:     #ffffff;
    --bg-2:   #f6f6f6;
    --ink:    #1a1a1a;
    --ink-soft: rgba(26, 26, 26, 0.65);
    --line:   rgba(26, 26, 26, 0.12);
    --lime:   #c6ff3d;
    --lime-deep: #a8dd1f;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.back-link {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   LOADER — Lightning bolt + electric arcs
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loader__stage {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader__bolt {
    width: 100px;
    height: 140px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 20px rgba(198, 255, 61, 0.5));
}
#bolt-outline { stroke-dasharray: 500; stroke-dashoffset: 500; }
#bolt-fill { opacity: 0; }

.loader__progress {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 2;
}

.loader__arcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.loader__arcs span {
    position: absolute;
    background: var(--lime);
    height: 1.5px;
    border-radius: 2px;
    transform-origin: left center;
    box-shadow: 0 0 6px rgba(198, 255, 61, 0.8);
    will-change: transform, opacity;
}

.loader__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--ink-soft);
    text-transform: uppercase;
}
.loader__counter {
    color: var(--ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
}

/* =========================================================
   VOLT SECTION
   ========================================================= */
.volt {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--bg);
    padding-bottom: 2rem;
}

/* ---------- Top nav ---------- */
.topnav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 3rem;
}

.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    will-change: transform;
}
.topnav__logo-mark {
    width: 18px;
    height: 26px;
    display: inline-flex;
    align-items: center;
}
.topnav__logo-mark svg { width: 100%; height: 100%; display: block; }
.topnav__logo-text { text-transform: uppercase; }

.topnav__nav {
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.topnav__link {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    will-change: transform;
    transition: background 0.3s, color 0.3s;
}
.topnav__link.is-active {
    background: var(--lime);
    font-weight: 700;
}
.topnav__link:not(.is-active):hover {
    background: rgba(26, 26, 26, 0.06);
}

.topnav__cta {
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.topnav__cta span { position: relative; z-index: 2; }
.topnav__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}
.topnav__cta:hover { color: var(--ink); }
.topnav__cta:hover::before { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    padding: 2rem 3rem 1.5rem;
    align-items: flex-start;
}

.hero__left {
    position: relative;
}

.hero__title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}
.hero__line--2 {
    display: flex;
    align-items: center;
    gap: 0.3em;
    flex-wrap: wrap;
}
.hero__char {
    display: inline-block;
    will-change: transform, color;
    transition: color 0.3s ease;
}
.hero__char.is-space { width: 0.25em; }
.hero__star {
    display: inline-flex;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    will-change: transform;
}
.hero__star svg { width: 100%; height: 100%; }

.hero__form {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem;
    max-width: 480px;
    background: var(--bg);
    transition: border-color 0.3s;
}
.hero__form:focus-within { border-color: var(--ink); }
.hero__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.hero__input::placeholder { color: rgba(26, 26, 26, 0.4); }
.hero__form-btn {
    background: var(--bg-2);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.hero__form-btn:hover { background: var(--ink); color: var(--lime); }

.hero__right {
    padding-top: 1rem;
}

.hero__desc {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
    max-width: 360px;
}

.cta-pill {
    display: inline-block;
    background: var(--lime);
    color: var(--ink);
    text-decoration: none;
    padding: 1rem 2.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    will-change: transform;
    transition: box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.cta-pill:hover { box-shadow: 0 10px 25px rgba(198, 255, 61, 0.5); }
.cta-pill span { position: relative; z-index: 2; }
.cta-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.08);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
}
.cta-pill:hover::before { transform: scaleX(1); transform-origin: left; }

/* ---------- Image block ---------- */
.image-wrap {
    position: relative;
    margin: 0 3rem;
    aspect-ratio: 16 / 7;
    will-change: transform;
}
.image-wrap__photo {
    position: absolute;
    inset: 0;
    border-radius: 40% 6px 6px 6px / 55% 6px 6px 6px;
    overflow: hidden;
    will-change: transform;
    z-index: 1;
}
.image-wrap__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    user-select: none;
    transition: transform 0.8s ease;
}
.image-wrap__arrow {
    position: absolute;
    top: -45px;
    right: 80px;
    z-index: 15;
    width: 90px; height: 90px;
    background: var(--ink);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0 0 12px var(--bg);
    will-change: transform;
    transition: background 0.3s, color 0.3s;
}
.image-wrap__arrow:hover { background: var(--lime); color: var(--ink); }
.image-wrap__arrow svg { width: 28px; height: 28px; transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1); }
.image-wrap__arrow:hover svg { transform: rotate(45deg); }

/* ---------- Slider side arrows (vertical middle) ---------- */
.slide-nav__arrow {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.slide-nav__arrow svg { width: 20px; height: 20px; transition: transform 0.3s; }
.slide-nav__arrow:hover {
    background: var(--lime);
    color: var(--ink);
    border-color: var(--lime);
    box-shadow: 0 8px 20px rgba(198, 255, 61, 0.45);
}
.slide-nav__arrow--side {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
}
.slide-nav__arrow--left  { left: 1.25rem; }
.slide-nav__arrow--right { right: 1.25rem; }
.slide-nav__arrow--left:hover svg  { transform: translateX(-3px); }
.slide-nav__arrow--right:hover svg { transform: translateX(3px); }

.slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.slide-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.2);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.slide-dots span.is-active {
    background: var(--ink);
    width: 30px;
    border-radius: 4px;
}

/* ---------- Initial states ---------- */
[data-magnetic], [data-link], [data-desc], [data-cta], [data-arrow], [data-form], [data-dots] {
    opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .topnav { padding: 1.25rem 1.5rem; gap: 1rem; }
    .topnav__nav { gap: 0.5rem; }
    .topnav__link { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .topnav__cta { padding: 0.75rem 1.25rem; font-size: 0.75rem; }
    .hero { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 1.5rem 1rem; }
    .hero__right { padding-top: 0; }
    .image-wrap { margin: 0 1rem; aspect-ratio: 4 / 3; }
    .image-wrap__arrow { right: 1rem; top: -20px; width: 64px; height: 64px; }
    .image-wrap__arrow svg { width: 22px; height: 22px; }
}
@media (max-width: 760px) {
    .topnav__logo-text { font-size: 1.1rem; }
    .topnav__nav a { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .topnav__cta { padding: 0.55rem 0.9rem; }
    .hero__title { font-size: clamp(2rem, 10vw, 3rem); }
    .hero__form { max-width: 100%; }
    .hero__desc { font-size: 0.9rem; }
    .cta-pill { padding: 0.75rem 1.75rem; font-size: 0.9rem; }
    .image-wrap { margin: 0; border-radius: 45% 0 0 0 / 60% 0 0 0; aspect-ratio: 4 / 3; }
    .image-wrap__arrow { width: 50px; height: 50px; top: -25px; box-shadow: 0 0 0 8px var(--bg); }
}
@media (max-width: 480px) {
    .topnav { flex-wrap: wrap; padding: 0.75rem 1rem; }
    .topnav__nav { order: 3; width: 100%; justify-content: center; margin: 0; }
    .topnav__cta { padding: 0.45rem 0.75rem; font-size: 0.7rem; }
    .image-wrap__arrow { width: 44px; height: 44px; }
}
