/* Modern CSS Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colour System - Sophisticated earth tones inspired by traditional charpoy */
    --clay-50: #fefcf0;
    --clay-100: #fef7dc;
    --clay-200: #fceb94;
    --clay-300: #f9db4c;
    --clay-400: #f5c518;
    --clay-500: #e5a505;
    --clay-600: #c17f02;
    --clay-700: #9b5c05;
    --clay-800: #7f4b0c;
    --clay-900: #6b3f10;
    
    --ink-50: #f8fafc;
    --ink-100: #f1f5f9;
    --ink-200: #e2e8f0;
    --ink-300: #cbd5e1;
    --ink-400: #94a3b8;
    --ink-500: #64748b;
    --ink-600: #475569;
    --ink-700: #334155;
    --ink-800: #1e293b;
    --ink-900: #0f172a;
    
    /* Typography Scale */
    --text-xs: clamp(0.75rem, 0.95vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.1vw, 1rem);
    --text-base: clamp(1rem, 1.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.5vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 2.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 3vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 4vw, 3.5rem);
    --text-5xl: clamp(3rem, 6vw, 5rem);
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border radius - sharp geometric forms inspired by charpai construction */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-lg: 0.375rem;
    --radius-xl: 0.5rem;
    --radius-2xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-subtle: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-medium: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-large: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Animation */
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Enhanced typography */
html {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01", "ss02";
    font-variant-numeric: oldstyle-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-800);
    background: linear-gradient(
        135deg,
        var(--clay-50) 0%,
        var(--ink-50) 25%,
        var(--clay-100) 50%,
        var(--ink-50) 75%,
        var(--clay-50) 100%
    );
    background-size: 400% 400%;
    animation: subtleShift 20s ease-in-out infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes subtleShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main Layout Grid */
.landing {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    padding: var(--space-8) var(--space-6);
    max-width: 120rem;
    margin: 0 auto;
    gap: var(--space-16);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: var(--space-8);
    position: relative;
}

.brand {
    max-width: 42rem;
}

.logo {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-6);
    background: linear-gradient(
        135deg,
        var(--clay-700) 0%,
        var(--clay-500) 30%,
        var(--clay-600) 60%,
        var(--clay-800) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 8s ease-in-out infinite;
    position: relative;
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink-600);
    letter-spacing: -0.015em;
    opacity: 0;
    animation: slideInUp 1s var(--ease-out) 0.5s forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-700);
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--clay-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Features Section - Asymmetrical Grid */
.features-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-8);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 40%;
    height: 140%;
    background: radial-gradient(
        ellipse at center,
        rgba(229, 165, 5, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.feature-large {
    grid-row: 1 / -1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 165, 5, 0.2);
    border-radius: var(--radius-none);
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--ease-out);
}

.feature-large::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(229, 165, 5, 0.3) 20%,
        rgba(229, 165, 5, 0.6) 80%,
        transparent 100%
    );
    transition: all 0.6s var(--ease-out);
}

.feature-large::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 120px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(229, 165, 5, 0.3) 20%,
        rgba(229, 165, 5, 0.6) 80%,
        transparent 100%
    );
    transition: all 0.6s var(--ease-out);
}

.feature-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: rgba(229, 165, 5, 0.4);
}

.feature-large:hover::before {
    width: 160px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(229, 165, 5, 0.5) 20%,
        rgba(229, 165, 5, 0.8) 80%,
        transparent 100%
    );
}

.feature-large:hover::after {
    height: 160px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(229, 165, 5, 0.5) 20%,
        rgba(229, 165, 5, 0.8) 80%,
        transparent 100%
    );
}

.feature-content h3 {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink-800);
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
}

.feature-content p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--ink-600);
}

.feature-medium,
.feature-small {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(203, 213, 225, 0.3);
    border-radius: var(--radius-sm);
    padding: var(--space-8);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.feature-medium::before,
.feature-small::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(229, 165, 5, 0.2) 50%,
        transparent 100%
    );
    transition: all 0.4s var(--ease-out);
}

.feature-medium:hover,
.feature-small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.8);
}

.feature-medium:hover::before,
.feature-small:hover::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(229, 165, 5, 0.4) 50%,
        transparent 100%
    );
}

.feature-medium h3,
.feature-small h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--ink-800);
    margin-bottom: var(--space-4);
    letter-spacing: -0.015em;
}

.feature-medium p,
.feature-small p {
    font-size: var(--text-base);
    color: var(--ink-600);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-content {
    text-align: center;
    max-width: 32rem;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink-800);
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: var(--ink-600);
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.email-form {
    position: relative;
}

.input-group {
    display: flex;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-soft);
}

.input-group:focus-within {
    border-color: var(--clay-500);
    box-shadow: var(--shadow-medium), 0 0 0 4px rgba(229, 165, 5, 0.1);
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-5);
    color: var(--ink-800);
}

.input-group input::placeholder {
    color: var(--ink-400);
}

.submit-btn {
    background: linear-gradient(135deg, var(--clay-600), var(--clay-500));
    color: white;
    border: none;
    border-radius: var(--radius-none);
    padding: var(--space-4) var(--space-8);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--clay-700), var(--clay-600));
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .landing {
        padding: var(--space-6) var(--space-4);
        gap: var(--space-12);
    }
    
    .features-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .feature-large {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .features-section {
        gap: var(--space-6);
    }
    
    .feature-large,
    .feature-medium,
    .feature-small {
        padding: var(--space-6);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--clay-500);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: rgba(229, 165, 5, 0.2);
    color: var(--ink-800);
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}