/* ========================================
   TACTILE DESIGN SYSTEM
   ======================================== */
:root {
    /* Colors */
    --color-midnight: #2E1065;
    --color-matcha: #D9F99D;
    --color-matcha-dark: #BEF264;
    --color-paper: #F8FAFC;
    --color-alert: #EA580C;
    --color-success: #14B8A6;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Atkinson Hyperlegible', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Shadows */
    --shadow-rest: 4px 4px 0px var(--color-midnight);
    --shadow-hover: 6px 6px 0px var(--color-midnight);
    --shadow-pressed: 0px 0px 0px var(--color-midnight);
    --shadow-card: 6px 6px 0px rgba(46, 16, 101, 0.1);

    /* Borders */
    --border-thick: 3px solid var(--color-midnight);
    --border-medium: 2px solid var(--color-midnight);

    /* Radii */
    --radius-small: 8px;
    --radius-large: 12px;
}

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

body {
    background: var(--color-paper);
    font-family: var(--font-body);
    color: #1F2937;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-midnight);
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

p {
    font-size: 18px;
    margin-bottom: 16px;
    color: #374151;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: var(--color-white);
    border-bottom: var(--border-thick);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    height: 45px;
    width: auto;
}

.logo-wordmark {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color-midnight);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-success);
}

/* ========================================
   BUTTONS
   ======================================== */
.tactile-button {
    background: var(--color-matcha);
    color: var(--color-midnight);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    padding: 16px 32px;
    border: var(--border-medium);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-rest);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.tactile-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.tactile-button:active {
    transform: translate(4px, 4px);
    box-shadow: var(--shadow-pressed);
}

.tactile-button.secondary {
    background: var(--color-white);
}

.tactile-button.success {
    background: var(--color-success);
    color: white;
}

.tactile-button.large {
    padding: 20px 40px;
    font-size: 20px;
}

.tactile-button.small {
    padding: 10px 18px;
    font-size: 14px;
}

/* ========================================
   CARDS
   ======================================== */
.tactile-card {
    background: var(--color-white);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
    padding: 32px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 80px 0;
    background: var(--color-white);
    border-bottom: var(--border-thick);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 32px;
    color: #4B5563;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-illustration {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.badge {
    display: inline-block;
    background: var(--color-success);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border: var(--border-medium);
    border-radius: var(--radius-small);
    margin-bottom: 24px;
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header p {
    font-size: 20px;
    color: #4B5563;
}

/* ========================================
   PROBLEM/SOLUTION SECTION
   ======================================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.problem-card {
    background: #FEF2F2;
    border: var(--border-thick);
    border-color: var(--color-alert);
    border-radius: var(--radius-large);
    padding: 32px;
}

.problem-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.solution-card {
    background: var(--color-matcha);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    padding: 48px;
    text-align: center;
}

.solution-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--color-matcha);
    border: var(--border-thick);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-midnight);
    margin: 0 auto 24px;
    box-shadow: var(--shadow-card);
}

/* ========================================
   SIMULATIONS SHOWCASE
   ======================================== */
.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.simulation-card {
    background: var(--color-white);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.simulation-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px rgba(46, 16, 101, 0.15);
}

.simulation-preview {
    background: linear-gradient(135deg, var(--color-matcha) 0%, var(--color-matcha-dark) 100%);
    padding: 60px 40px;
    text-align: center;
    border-bottom: var(--border-thick);
}

.simulation-preview .icon {
    font-size: 80px;
}

.simulation-content {
    padding: 24px;
}

.grade-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.grade-tag {
    background: var(--color-paper);
    border: var(--border-medium);
    border-radius: var(--radius-small);
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-midnight);
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.benefit-card {
    background: var(--color-white);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px rgba(46, 16, 101, 0.15);
}

.benefit-card .icon {
    width: 72px;
    height: 72px;
    background: var(--color-matcha);
    border: var(--border-thick);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    color: var(--color-midnight);
}

.benefit-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.benefit-card p {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.benefit-card .stat {
    display: inline-block;
    background: var(--color-matcha);
    border: 2px solid var(--color-midnight);
    border-radius: var(--radius-small);
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-midnight);
    margin-top: 16px;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--color-white);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.pricing-card.featured {
    background: var(--color-matcha);
    transform: scale(1.05);
}

.pricing-card.featured .popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 20px;
    border: var(--border-medium);
    border-radius: var(--radius-small);
}

.pricing-header h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.pricing-header p {
    color: #6B7280;
    margin-bottom: 24px;
}

.price {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-midnight);
    margin-bottom: 8px;
}

.price-period {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 8px;
}

.early-bird {
    background: var(--color-alert);
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-size: 14px;
    display: inline-block;
    margin-bottom: 24px;
}

.original-price {
    text-decoration: line-through;
    color: #9CA3AF;
    font-size: 24px;
    margin-left: 12px;
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 2px solid var(--color-paper);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.pricing-features .check {
    color: var(--color-success);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.savings-banner {
    background: var(--color-success);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    padding: 32px;
    text-align: center;
    margin-top: 40px;
    color: white;
}

.savings-banner h3 {
    color: white;
    font-size: 32px;
    margin-bottom: 16px;
}

/* ========================================
   DEMO/TRIAL SECTION
   ======================================== */
.demo-section {
    background: var(--color-midnight);
    color: white;
    border-radius: var(--radius-large);
    padding: 60px;
    text-align: center;
}

.demo-section h2 {
    color: white;
    margin-bottom: 20px;
}

.demo-section p {
    color: #E5E7EB;
    font-size: 20px;
    margin-bottom: 40px;
}

.demo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.demo-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-large);
    padding: 32px;
}

.demo-option .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.demo-option h4 {
    color: white;
    margin-bottom: 12px;
}

.demo-option p {
    color: #D1D5DB;
    font-size: 16px;
    margin-bottom: 24px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-grid {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.faq-item h4 {
    color: var(--color-midnight);
    margin-bottom: 12px;
}

.faq-item p {
    color: #4B5563;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--color-matcha);
    border: var(--border-thick);
    border-radius: var(--radius-large);
    padding: 60px;
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--color-midnight);
    color: white;
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--color-matcha);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-section a:hover {
    color: var(--color-matcha);
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: #9CA3AF;
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--color-white);
    border-top: var(--border-thick);
    border-bottom: var(--border-thick);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-midnight);
    display: block;
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 16px;
    color: #6B7280;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0;
    }

    section {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .demo-section {
        padding: 40px 24px;
    }
}
