/* ==========================================================================
   AI-POWERED FULL-STACK DIGITAL MARKETING
   Design System — extended from the digibulltech brand identity
   Source of truth: digibulltech.com visual identity + brand design system doc
   ========================================================================== */

:root {
    /* ---- Brand Colors (source of truth) ---- */
    --primary-brand: #b8ef43;
    --primary-brand-glow: rgba(184, 239, 67, 0.4);
    --primary-brand-soft: rgba(184, 239, 67, 0.12);
    --primary-brand-line: rgba(184, 239, 67, 0.25);
    --primary-brand-deep: #8fc422;

    --bg-black: #000000;
    --bg-deep: #050505;
    --bg-elevated: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(10, 10, 10, 0.55);

    --border-glass: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text-white: #FFFFFF;
    --text-dim: #A0A0A0;
    /* #666 reads well but lands at 3.7:1 on black — short of WCAG AA for
       normal text. #7d7d7d clears 4.5:1 while staying clearly below --text-dim. */
    --text-faint: #7D7D7D;
    --text-dark: #000000;

    /* ---- Typography ---- */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Outfit', -apple-system, sans-serif;

    --fs-display: clamp(2.6rem, 7.2vw, 6.5rem);
    --fs-h2: clamp(1.95rem, 4.4vw, 3.6rem);
    --fs-h3: clamp(1.35rem, 2.2vw, 1.95rem);
    --fs-h4: clamp(1.05rem, 1.5vw, 1.3rem);
    --fs-lead: clamp(1.02rem, 1.55vw, 1.3rem);
    --fs-body: clamp(0.94rem, 1.05vw, 1.02rem);
    --fs-small: 0.85rem;
    --fs-label: 0.72rem;

    /* ---- Layout ---- */
    --container-max: 1300px;
    --container-wide: 1480px;
    --nav-height: 90px;
    --gutter: clamp(20px, 4vw, 48px);
    --section-pad: clamp(88px, 11vw, 168px);

    /* ---- Radius ---- */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-pill: 100px;

    /* ---- Elevation / Depth ---- */
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(184, 239, 67, 0.06);
    --shadow-lift: 0 40px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(184, 239, 67, 0.1);
    --shadow-btn: 0 10px 20px rgba(184, 239, 67, 0.2);
    --shadow-btn-hover: 0 15px 30px var(--primary-brand-glow);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);

    /* ---- Motion ---- */
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 0.25s;
    --dur-base: 0.4s;
    --dur-slow: 0.9s;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient volumetric light — fixed atmospheric depth behind everything */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -2;
    pointer-events: none;
    border-radius: 50%;
}
body::before {
    top: -15%; right: -12%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(184, 239, 67, 0.08) 0%, transparent 70%);
    filter: blur(100px);
}
body::after {
    bottom: -15%; left: -12%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(184, 239, 67, 0.05) 0%, transparent 70%);
    filter: blur(120px);
}

img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--primary-brand); color: var(--text-dark); }

/* Accessible focus — visible on the dark ground, never intrusive */
:focus-visible {
    outline: 2px solid var(--primary-brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100px; left: 20px;
    z-index: 2000;
    background: var(--primary-brand);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--r-md);
    font-weight: 600;
    transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 20px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }

.brand-text {
    color: var(--primary-brand);
    -webkit-text-fill-color: var(--primary-brand);
}

/* Editorial gradient headline treatment — light falling across type */
.grad-text {
    /* Vertical axis so the falloff is identical at every headline width */
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #b4b4b4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--primary-brand);
    margin-bottom: 22px;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--primary-brand);
    opacity: 0.7;
}

.lead {
    font-size: var(--fs-lead);
    color: var(--text-dim);
    line-height: 1.6;
    font-weight: 300;
    max-width: 62ch;
}

.section-head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-bottom: 22px; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-wide { max-width: var(--container-wide); }

.section {
    position: relative;
    padding-block: var(--section-pad);
    /* Atmospheric orbs deliberately sit outside the content box — clip them
       here so they never widen the document. */
    overflow: hidden;
}
.section-deep { background: var(--bg-deep); }

/* Hairline rule that fades at both ends — used between major movements */
.section-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass) 20%, var(--border-glass) 80%, transparent);
}

.grid { display: grid; gap: clamp(16px, 1.8vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   SURFACES — glass panels with believable depth
   ========================================================================== */

.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--r-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(24px, 2.4vw, 36px);
    box-shadow: var(--shadow-inset);
    transition: var(--transition);
    overflow: hidden;
    isolation: isolate;
}

/* Light sweep that lives on the top edge of every glass surface */
.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
}

.card:hover,
.card:focus-within {
    background: var(--bg-card-hover);
    border-color: var(--primary-brand-line);
    box-shadow: var(--shadow-lift);
    transform: translateY(-6px);
}
.card:hover::before,
.card:focus-within::before { opacity: 1; }

/* Card titles are h3 for correct document outline, but keep the smaller
   card-scale size rather than the section-scale h3 size. */
.card h3, .card h4 {
    font-size: var(--fs-h4);
    line-height: 1.3;
    margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: var(--fs-body); }

.card-index {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--primary-brand);
    margin-bottom: 18px;
    display: block;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 15px 32px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary {
    background: var(--primary-brand);
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-btn-hover);
}

/* Light sweep on hover — restrained, single pass */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.55) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
    z-index: -1;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary-brand-line);
    transform: translateY(-3px);
}

.btn-arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-wa-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Pill / tag */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    transition: var(--transition);
}
.pill:hover {
    color: var(--text-white);
    border-color: var(--primary-brand-line);
    background: var(--primary-brand-soft);
}

/* ==========================================================================
   MOTION SYSTEM — scroll reveals, depth emergence
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(34px) translateZ(-40px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out),
        filter 0.9s var(--ease-out);
    filter: blur(6px);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0);
}

/* Staggered children emerge from depth in sequence */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1)  { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.07s; }
.reveal-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(7)  { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(8)  { transition-delay: 0.49s; }
.reveal-stagger.is-visible > *:nth-child(9)  { transition-delay: 0.56s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.63s; }
.reveal-stagger.is-visible > *:nth-child(n+11) { transition-delay: 0.7s; }

/* 3D tilt surface — driven by pointer, damped in JS */
.tilt {
    transform-style: preserve-3d;
    will-change: transform;
}
.tilt-inner { transform: translateZ(28px); transform-style: preserve-3d; }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(2.1); opacity: 0; }
    100% { transform: scale(2.1); opacity: 0; }
}
@keyframes drift-line {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes scroll-hint {
    0%, 100% { transform: translateY(0);   opacity: 0.35; }
    50%      { transform: translateY(8px); opacity: 1; }
}

/* ==========================================================================
   DIGITAL GRID — the brand's structural texture
   ========================================================================== */

.grid-texture {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 25%, transparent 78%);
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--primary-brand-soft) 0%, transparent 70%);
}

/* Keep real content above the atmospheric layers */
.section > .container { position: relative; z-index: 2; }

/* ==========================================================================
   REDUCED MOTION — simplify parallax and animation, keep the design intact
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .tilt { transform: none !important; }
    .float-obj { animation: none !important; }
}
