:root {
    --bg-primary: #11151c;
    --bg-secondary: #0d1117;
    --surface: #212d40;
    --surface-light: rgba(33, 45, 64, 0.6);
    --surface-secondary: #364156;
    --accent: #d66853;
    --accent-secondary: #7d4e57;
    --text-primary: #ffffff;
    --text-secondary: #a8b2c7;
    --text-muted: #6b7585;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --glow-accent: rgba(214, 104, 83, 0.3);
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Support for iPhone safe areas */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(214, 104, 83, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(125, 78, 87, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(54, 65, 86, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

/* Navigation */
.nav {
    background: rgba(17, 21, 28, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDownHeader 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 2px 8px rgba(214, 104, 83, 0.3));
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.follow-us {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--surface-light);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    text-decoration: none;
}

.follow-us:hover {
    background: rgba(214, 104, 83, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--glow-accent) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(125, 78, 87, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(54, 65, 86, 0.3) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: slideGrid 20s linear infinite;
}

@keyframes slideGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.05) rotate(1deg);
    }
    66% {
        transform: translate(20px, -10px) scale(1.02) rotate(-1deg);
    }
}

.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-lines::before,
.hero-lines::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.1;
    animation: slideLine 10s linear infinite;
}

.hero-lines::before {
    left: 20%;
}

.hero-lines::after {
    right: 20%;
    animation-delay: 5s;
}

@keyframes slideLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h2 {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-shadow: 
        0 0 80px rgba(214, 104, 83, 0.3),
        0 0 40px rgba(214, 104, 83, 0.2);
}

.subheading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 50px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 50px auto;
    border-radius: 2px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 60px auto;
    max-width: 600px;
}

.stats-caption {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    margin-top: -40px;
    margin-bottom: 40px;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(214, 104, 83, 0.4);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.stat-separator {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
    margin: 10px 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px var(--glow-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px var(--glow-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Waitlist Form */
.waitlist-container {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.waitlist-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    max-width: 90vw;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.waitlist-form.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.waitlist-form.reveal {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.waitlist-form.success .form-group {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.05);
}

.form-group {
    display: flex;
    align-items: center;
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glow-accent);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group:focus-within {
    border-color: var(--accent);
    box-shadow: 
        0 0 0 3px rgba(214, 104, 83, 0.1), 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.submit-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--glow-accent);
}

.submit-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--glow-accent);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-button.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-message.show {
    opacity: 1;
    pointer-events: auto;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-message.info {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

#waitlist-trigger.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(33, 45, 64, 0.1) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px !important;
}

.glass-card {
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(214, 104, 83, 0.5), 
        transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--glow-accent);
}

.about-text h3 {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 24px;
    font-weight: 600;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text .lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    letter-spacing: 0.3px;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    margin: 40px 0;
    border-radius: 2px;
}

.about-text h4 {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(22px, 2.5vw, 28px);
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.about-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.about-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.about-text a:hover {
    color: var(--accent-secondary);
}

.about-text a:hover::after {
    width: 100%;
}

.about-image {
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, var(--glow-accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-box:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.image-box:hover::before {
    opacity: 0.3;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.image-box:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.8) 100%);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--glow-accent), 
        transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
    background: rgba(214, 104, 83, 0.1);
}

.footer-nav a:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Section spacing */
    .about {
        padding: 60px 0 50px;
    }
    
    footer {
        padding: 40px 0;
    }
    .nav {
        padding: 12px 0;
    }
    
    .nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo-wrapper {
        gap: 8px;
    }
    
    .logo-image {
        width: 28px;
        height: 28px;
    }
    
    .logo {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .follow-us {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .hero {
        padding: 90px 0 40px;
        min-height: auto;
    }
    
    .hero h2 {
        font-size: 28px;
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .subheading {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 0;
        margin: 35px auto;
        max-width: 100%;
    }
    
    .stat {
        flex: 1;
        padding: 10px 5px;
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 22px;
        font-weight: 700;
    }
    
    .stat-label {
        font-size: 10px;
        margin-top: 2px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .stat-separator {
        display: block;
        width: 1px;
        height: 35px;
    }
    
    .stats-caption {
        font-size: 10px;
        margin-top: -20px;
        margin-bottom: 25px;
    }
    
    .glass-card {
        padding: 40px 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px !important;
    }
    
    .about-text h3 {
        font-size: 26px;
    }
    
    .about-text h4 {
        font-size: 20px;
    }
    
    .divider {
        margin: 30px 0;
    }
    
    .waitlist-container {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 0;
    }
    
    .cta-button {
        font-size: 14px;
        padding: 12px 24px;
        width: 100%;
        max-width: 260px;
    }
    
    .waitlist-form {
        width: 100%;
        max-width: 320px;
    }
    
    .form-group {
        padding: 3px;
    }
    
    .waitlist-form input[type="email"] {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-button {
        width: 44px;
        height: 44px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .footer-nav a {
        width: 200px;
        text-align: center;
    }
}

/* iPhone specific styles */
@media (max-width: 430px) {
    /* Container and sections */
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 80px 0 30px;
        min-height: auto;
    }
    
    .about {
        padding: 40px 0;
    }
    
    footer {
        padding: 30px 0;
    }
    
    .hero h2 {
        font-size: 26px;
        padding: 0 10px;
    }
    
    .subheading {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .hero-divider {
        margin: 18px auto;
        width: 50px;
        height: 2px;
    }
    
    .hero-stats {
        margin: 25px auto;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .stats-caption {
        margin-top: -12px;
        margin-bottom: 20px;
    }
    
    .about-content {
        padding: 20px !important;
        margin: 15px;
        gap: 20px;
    }
    
    .about-text h3 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .about-text h4 {
        font-size: 18px;
    }
    
    .lead, .about-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .image-box {
        height: 250px;
        border-radius: 16px;
    }
    
    /* Waitlist specific */
    .waitlist-container {
        margin-top: 15px;
    }
    
    .cta-button {
        padding: 14px 20px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .form-message {
        font-size: 13px;
    }
    
    /* Footer adjustments */
    .footer-content {
        gap: 20px;
    }
    
    .footer-content .logo {
        font-size: 18px;
    }
    
    .footer-nav a {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}