:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(255, 102, 0, 0.15);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --orange-accent: #ff6600;
    --orange-hover: #ff8533;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Wrapper removed as it causes severe scroll freezing on iOS */

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.site-wrapper {
    position: relative;
    overflow-x: hidden;
}

img,
iframe {
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.text-orange {
    color: var(--orange-accent);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--orange-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--orange-accent);
    color: var(--orange-accent);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh; /* 100vh instead of 100svh to prevent scroll stutter on iOS */
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--bg-dark);
    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: 60px 60px;
    background-position: center center;
}

.hero-bg .overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 40% 30%, rgba(255, 102, 0, 0.08), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 102, 0, 0.04), transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(90deg, rgba(255, 102, 0, 0.1), rgba(255, 102, 0, 0.02));
    color: white;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.15);
    /* Removed backdrop-filter to prevent iOS freeze */
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Metrics Bar */
.metrics-bar {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.metrics-title {
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Removed backdrop-filter to prevent iOS freeze */
}

.metric-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
    background: linear-gradient(145deg, rgba(255, 102, 0, 0.05), rgba(0, 0, 0, 0.3));
}

.metric-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Removed backdrop-filter to prevent iOS freeze */
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 102, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--orange-accent);
}

/* Revenue Section */
.revenue-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.revenue-card {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(10, 10, 10, 1) 100%);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.15);
}

.revenue-card .stat {
    font-size: 6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--orange-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.revenue-card .stat-label {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* About & Partner Section */
.about-container, .partner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
}

.accent-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 500;
}

.features-list i {
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(25, 25, 25, 1) 0%, rgba(10, 10, 10, 1) 100%);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.contact-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.contact-form input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS zoom */
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus {
    border-color: var(--orange-accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--orange-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}



/* Scroll Animation Reveal - Desktop Only */
@media (min-width: 769px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .about-container, .partner-container, .revenue-container {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-visual {
        order: 2;
    }
}

@media (max-width: 768px) {
    .section-padding,
    .cta-section {
        padding: 72px 0;
    }

    h1 {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.75rem, 9vw, 2.75rem);
    }

    p,
    .features-list li,
    .metric-item {
        font-size: 1rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .nav-content {
        gap: 1rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo img {
        height: 34px;
    }

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

    .section-header {
        margin-bottom: 2.5rem;
    }

    .revenue-card {
        padding: 2rem;
    }

    .revenue-card .stat {
        font-size: 3.5rem;
    }
    
    .revenue-card .stat span {
        font-size: 1.5rem !important;
    }

    .metric-item {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        padding: 1.5rem 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        gap: 1rem;
        max-height: calc(100svh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li,
    .nav-links a {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }

    .navbar .btn {
        display: none;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: 112px;
        padding-bottom: 72px;
    }

    .hero-text,
    .about-content,
    .partner-content,
    .revenue-content {
        text-align: left;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }

    .services-grid,
    .footer-links {
        gap: 1.25rem;
    }

    .service-card,
    .cta-box {
        padding: 1.75rem;
    }

    .footer-content,
    .footer-links {
        flex-direction: column;
    }

    .footer-content {
        gap: 2rem;
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .contact-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .btn-large {
        padding: 0.95rem 1.25rem;
        font-size: 1rem;
    }

    .partner-form-content {
        width: calc(100% - 1.5rem);
        padding: 2rem 1.25rem;
    }

    .modal-content {
        width: calc(100% - 1rem);
        height: 84vh;
        border-radius: 16px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background: var(--bg-dark);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--orange-accent);
}

.iframe-container {
    width: 100%;
    height: 100%;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Partnership Form Styles */
.partner-form-content {
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    padding: 3rem 2rem;
    overflow-y: auto;
}

.form-container {
    text-align: center;
    width: 100%;
}

.form-container h2 {
    margin-bottom: 2rem;
}

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.partner-form input,
.partner-form select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS zoom */
    outline: none;
    transition: var(--transition);
}

.partner-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.partner-form input:focus,
.partner-form select:focus {
    border-color: var(--orange-accent);
    background: rgba(255, 255, 255, 0.08);
}

.partner-form select {
    appearance: none;
    cursor: pointer;
}

.partner-form select option {
    background: var(--bg-dark);
    color: white;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

.btn-submit-partner {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.125rem;
}

.btn-submit-partner:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    padding: 2rem;
    background: rgba(255, 102, 0, 0.05);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
}

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