/* ==========================================================================
   AI IMPACT WORKSHOPS - DESIGN SYSTEM
   Swiss International meets Analogue Workshop
   ========================================================================== */

/* --------------------------------------------------------------------------
   @FONT-FACE: GT Walsheim
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'GT Walsheim';
    src: url('fonts/GT-Walsheim-Regular.woff2') format('woff2'),
        url('fonts/GT-Walsheim-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Walsheim';
    src: url('fonts/GT-Walsheim-Medium.woff2') format('woff2'),
        url('fonts/GT-Walsheim-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Walsheim';
    src: url('fonts/GT-Walsheim-Bold.woff2') format('woff2'),
        url('fonts/GT-Walsheim-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-highlight: #EAFF00;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #888888;

    /* Typography - GT Walsheim */
    --font-primary: 'GT Walsheim', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-heavy: 700;
    --font-weight-black: 700;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 2rem;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    /* Sharp text rendering for crisp fonts */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

/* Paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
}

/* --------------------------------------------------------------------------
   CONTAINER
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-black);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   HIGHLIGHT EFFECT
   Hand-drawn marker using pseudo-element for organic edges
   Text stays sharp, only the background gets the rough filter
   -------------------------------------------------------------------------- */
.highlight {
    position: relative;
    display: inline;
    color: inherit;
    /* Sharp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    /* Custom properties for random-looking variations */
    --hl-left: -0.08em;
    --hl-right: -0.08em;
    --hl-top: 0.05em;
    --hl-bottom: 0.05em;
    --hl-rotate: -0.3deg;
    --hl-skew: 0deg;
}

/* The yellow marker background - filter applied here only */
.highlight::before {
    content: '';
    position: absolute;
    top: var(--hl-top);
    bottom: var(--hl-bottom);
    left: var(--hl-left);
    right: var(--hl-right);
    background: var(--color-highlight);
    z-index: -1;
    /* Hand-drawn rough edges via SVG filter */
    filter: url(#highlighter-rough);
    transform: rotate(var(--hl-rotate)) skewX(var(--hl-skew));
}

/* Dark background override - text color changes */
.hero .highlight,
.section-trust .highlight {
    color: var(--color-black);
}

/* ==========================================================================
   INDIVIDUAL HIGHLIGHT VARIATIONS
   Each highlight looks different - some start early, end late, etc.
   Vertical positioning also varies (shifted up or down, not centered)
   ========================================================================== */

/* HYPE - starts early, shifted DOWN (more top space, less bottom) */
.hero-headline .line:first-child .highlight {
    --hl-left: -0.15em;
    --hl-right: -0.05em;
    --hl-top: 0.12em;
    --hl-bottom: -0.02em;
    --hl-rotate: -0.5deg;
    --hl-skew: -0.8deg;
}

/* IMPACT - ends late, shifted UP (less top, more bottom) */
.hero-headline .line:last-child .highlight {
    --hl-left: -0.03em;
    --hl-right: -0.18em;
    --hl-top: -0.02em;
    --hl-bottom: 0.1em;
    --hl-rotate: 0.3deg;
    --hl-skew: 0.5deg;
}

/* Section headlines - each with unique character */
.section-headline .highlight:nth-of-type(1) {
    --hl-left: -0.12em;
    --hl-right: -0.06em;
    --hl-rotate: -0.4deg;
}

/* Trust section (15 YEARS) */
.section-trust .section-headline .highlight {
    --hl-left: -0.1em;
    --hl-right: -0.15em;
    --hl-top: 0.06em;
    --hl-bottom: 0.04em;
    --hl-rotate: 0.5deg;
    --hl-skew: -0.6deg;
}

/* Pricing section (NEXT STEPS) */
.section-pricing .section-headline .highlight {
    --hl-left: -0.05em;
    --hl-right: -0.2em;
    --hl-top: 0.02em;
    --hl-bottom: 0.1em;
    --hl-rotate: -0.6deg;
}

/* Workshops section */
.section-workshops .section-headline .highlight {
    --hl-left: -0.18em;
    --hl-right: -0.02em;
    --hl-rotate: 0.4deg;
    --hl-skew: 0.3deg;
}

/* Follow-up section */
.section-followup .section-headline .highlight {
    --hl-left: -0.08em;
    --hl-right: -0.12em;
    --hl-top: 0.1em;
    --hl-bottom: 0em;
    --hl-rotate: -0.2deg;
}

/* Reality check section */
.section-problem .section-headline .highlight {
    --hl-left: -0.14em;
    --hl-right: -0.04em;
    --hl-top: 0.04em;
    --hl-bottom: 0.06em;
    --hl-skew: -0.4deg;
}

/* --------------------------------------------------------------------------
   BUTTONS
   Solid black, sharp corners, stark
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-highlight);
    color: var(--color-black);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   White background, massive black typography, yellow highlighter
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    background-color: var(--color-white);
    color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
}

.hero-headline {
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 0.95;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    /* Ensure sharp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.hero-headline .line {
    display: block;
    white-space: nowrap;
}

/* EXPERIENCE text styling */
.hero-headline .highlight-target {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   HERO MARKER STROKE
   Diagonal squiggly line connecting EXPERIENCE to Impact
   -------------------------------------------------------------------------- */
.hero-marker-stroke {
    position: absolute;
    left: 50%;
    top: 30%;
    width: clamp(280px, 40vw, 500px);
    height: auto;
    transform: translateX(-30%);
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.squiggle-path {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 28;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.squiggle-path-secondary {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 20;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

.hero-subheadline-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.hero-subheadline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
}

/* Marked text container */
.marked-text {
    position: relative;
    display: inline-block;
}

.text-experience,
.text-impact {
    position: relative;
    z-index: 2;
}

/* Fuzzy hand-drawn marker underline SVG */
.marker-underline-svg {
    position: absolute;
    left: -5%;
    right: -5%;
    top: 50%;
    width: 110%;
    height: 50px;
    transform: translateY(-45%);
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.marker-stroke-path {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 16;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#marker-fuzzy);
    opacity: 0.85;
}

.marker-stroke-path-secondary {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#marker-fuzzy);
    opacity: 0.65;
}

.marker-stroke-accent {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 6;
    stroke-linecap: round;
    filter: url(#marker-fuzzy);
    opacity: 0.5;
}

/* Ink pooling dabs at start and end of stroke */
.marker-ink-dab {
    fill: var(--color-highlight);
    filter: url(#marker-fuzzy);
    opacity: 0.55;
}

.marker-ink-dab-end {
    fill: var(--color-highlight);
    filter: url(#marker-fuzzy);
    opacity: 0.7;
}

.hero-body {
    font-size: 1.125rem;
    max-width: 550px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
    color: var(--color-black);
    opacity: 0.75;
}

/* Hero button - black on white bg */
.hero .btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.hero .btn-primary:hover {
    background-color: var(--color-highlight);
    color: var(--color-black);
}

/* --------------------------------------------------------------------------
   HERO MARKER
   Marker positioned at end of squiggle stroke like mockup
   -------------------------------------------------------------------------- */
.hero-marker {
    position: absolute;
    top: 42%;
    right: 15%;
    width: clamp(120px, 18vw, 280px);
    transform: rotate(40deg);
    pointer-events: none;
    z-index: 10;
}

.marker-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(4px 8px 16px rgba(0, 0, 0, 0.25));
}

/* --------------------------------------------------------------------------
   SCROLL INDICATOR
   Subtle animated indicator at bottom center
   -------------------------------------------------------------------------- */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-black);
    opacity: 0.5;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-arrow {
    font-size: 1.25rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(6px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* --------------------------------------------------------------------------
   LOGO BAR
   Grayscale, minimal
   -------------------------------------------------------------------------- */
.logo-bar {
    border-top: 1px solid var(--color-black);
    border-bottom: 1px solid var(--color-black);
    padding: var(--space-md) 0;
    background-color: var(--color-white);
}

.logo-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.logo-bar-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-medium);
}

.logos {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--color-gray-medium);
}

.logo-divider {
    color: var(--color-gray-medium);
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.section {
    padding: var(--space-xl) 0;
}

.section-headline {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xs);
}

.section-tagline {
    font-size: 1.125rem;
    color: var(--color-gray-medium);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   PROBLEM SECTION
   -------------------------------------------------------------------------- */
.section-problem {
    border-bottom: 1px solid var(--color-black);
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.problem-col h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.problem-col p {
    margin-bottom: var(--space-sm);
}

.problem-list {
    list-style: none;
    margin-bottom: var(--space-sm);
}

.problem-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.problem-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: var(--font-weight-bold);
}

.problem-emphasis {
    font-weight: var(--font-weight-bold);
    background-color: var(--color-highlight);
    padding: var(--space-xs);
    display: inline;
}

/* --------------------------------------------------------------------------
   WORKSHOPS SECTION
   -------------------------------------------------------------------------- */
.section-workshops {
    background-color: var(--color-gray-light);
}

.tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.track-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-black);
    padding: var(--space-md);
}

.track-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    margin-bottom: var(--space-sm);
}

.track-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.track-subtitle {
    font-size: 1rem;
    color: var(--color-gray-medium);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-black);
}

.track-content p {
    margin-bottom: var(--space-sm);
}

.track-outcome {
    background-color: var(--color-gray-light);
    padding: var(--space-sm);
    margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   FOLLOW-UP SECTION
   -------------------------------------------------------------------------- */
.section-followup {
    border-bottom: 1px solid var(--color-black);
}

.followup-content {
    max-width: 700px;
}

.followup-lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.followup-steps {
    list-style: none;
    counter-reset: steps;
    margin: var(--space-md) 0;
}

.followup-steps li {
    counter-increment: steps;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.followup-steps li::before {
    content: counter(steps) '.';
    position: absolute;
    left: 0;
    font-weight: var(--font-weight-black);
    font-size: 1.25rem;
}

.followup-emphasis {
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   TRUST SECTION
   -------------------------------------------------------------------------- */
.section-trust {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-trust .section-headline {
    color: var(--color-white);
}

.section-trust .highlight {
    filter: none;
    mix-blend-mode: normal;
    background: var(--color-highlight);
    color: var(--color-black);
}

.trust-content {
    max-width: 800px;
}

.trust-content p {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
}

.trust-content strong {
    color: var(--color-white);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   PRICING SECTION
   -------------------------------------------------------------------------- */
.section-pricing {
    text-align: center;
}

.pricing-card {
    display: inline-block;
    text-align: left;
    border: 2px solid var(--color-black);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    background-color: var(--color-white);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-amount {
    font-size: 1.125rem;
}

.price {
    font-size: 2rem;
    font-weight: var(--font-weight-black);
    background-color: var(--color-highlight);
    padding: 0 0.25em;
}

.cta-final {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
}

.cta-final p {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--color-black);
    padding: var(--space-md) 0;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--color-gray-medium);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero {
        padding: var(--space-md);
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-body {
        margin-left: auto;
        margin-right: auto;
    }

    .problem-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .tracks {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .logo-bar .container {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .section-headline {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}