/* ===== ROOT VARIABLES ===== */
:root {
    --primary-green: #86f225;
    --dark-green: #44c61d;
    --bg-dark: #0a0a0a;
    --bg-overlay: rgba(0, 0, 0, 0.75);
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --max-width: 1400px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
}

.logo {
    height: 50px;
    width: auto;
}

/* ===== SECTION BASE ===== */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.section-bg {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    filter: grayscale(0.6) brightness(0.85);
}

.section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 1;
}

/* ===== SECTION HEADER ===== */
.section-header {
    color: var(--primary-green);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--bg-dark);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 18px 50px;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(134, 242, 37, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    height: 54px;
}

.cta-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(134, 242, 37, 0.5);
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 33px;
    background-color: transparent;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    height: 54px;
}

.app-store-button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.app-store-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: -28px;
}

.android-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-phone {
    flex: 0 0 auto;
    max-width: 400px;
}

.phone-mockup {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: none;
}

.hero-title {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    line-height: 1.6;
    margin-bottom: 50px;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
}

/* ===== PROBLEM SECTION ===== */
.problem {
    padding: 80px 0;
}

.problem-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.problem-title {
    font-size: clamp(36px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 60px;
    text-align: center;
    word-break: keep-all;
}

.equals {
    color: var(--primary-green);
    display: inline-block;
}

.problem-points {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.problem-point h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    word-break: break-word;
    hyphens: auto;
}

.problem-point p {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--text-gray);
    line-height: 1.6;
    word-break: break-word;
    hyphens: auto;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 80px 0;
}

.how-it-works-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.how-it-works-phone {
    flex: 0 0 auto;
    max-width: 350px;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: var(--bg-dark);
    font-size: 32px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 10px;
}

.step-description {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    padding: 80px 0;
}

.final-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 50px;
    letter-spacing: -1px;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.social-links,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a,
.footer-links a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.social-links a:hover,
.footer-links a:hover {
    color: var(--primary-green);
}

.footer-section p {
    color: var(--text-gray);
}

.footer-section a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .logo {
        height: 40px;
    }

    .section {
        min-height: 100vh;
        padding: 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .hero-phone {
        order: 2;
        max-width: 300px;
        margin-top: 20px;
    }

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

    .how-it-works-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .how-it-works-phone {
        max-width: 300px;
    }

    .problem,
    .how-it-works,
    .final-cta {
        padding: 60px 0;
    }

    .hero-subtitle br,
    .hero-title br,
    .final-cta-title br {
        display: none;
    }

    .hero-title,
    .problem-title,
    .final-cta-title {
        word-spacing: 0.05em;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        word-spacing: normal;
        letter-spacing: normal;
    }

    .problem {
        padding: 60px 0;
    }

    .problem-title {
        font-size: clamp(36px, 10vw, 56px);
        line-height: 1.15;
        margin-bottom: 40px;
    }

    .problem-points {
        gap: 35px;
        max-width: 600px;
        margin: 0 auto;
    }

    .problem-point {
        padding: 0 10px;
    }

    .problem-point h3 {
        font-size: clamp(17px, 3.5vw, 21px);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .problem-point p {
        font-size: clamp(14px, 3vw, 16px);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.6;
    }

    .step {
        gap: 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

    .section-header {
        font-size: clamp(16px, 4vw, 20px);
        letter-spacing: 1.5px;
        margin-bottom: 30px;
    }

    .cta-button {
        font-size: 15px;
        padding: 14px 35px;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 40px);
        letter-spacing: 0;
        word-spacing: 0.1em;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }

    .problem-title {
        font-size: clamp(28px, 9vw, 40px);
        letter-spacing: 0;
        line-height: 1.25;
        margin-bottom: 35px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .problem-title br {
        display: none;
    }

    .equals {
        font-size: 1em;
        display: block;
        margin: 8px 0;
    }

    .problem-points {
        gap: 30px;
        max-width: 100%;
    }

    .problem-point {
        padding: 0;
        text-align: left;
    }

    .problem-point h3 {
        font-size: clamp(15px, 4.5vw, 18px);
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .problem-point p {
        font-size: clamp(12px, 3.8vw, 14px);
        line-height: 1.65;
        opacity: 0.9;
    }

    .final-cta-title {
        font-size: clamp(32px, 8vw, 48px);
        letter-spacing: 0;
        word-spacing: 0.1em;
        line-height: 1.2;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
    }

    .step-title {
        word-break: break-word;
        font-size: clamp(20px, 5vw, 26px);
    }

    .step-description {
        word-break: break-word;
        hyphens: auto;
        font-size: clamp(13px, 3.5vw, 16px);
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(134, 242, 37, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-green);
}

.modal-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-group select option {
    background: #1a1a1a;
    color: var(--text-white);
}

.submit-button {
    margin-top: 10px;
    width: 100%;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: rgba(134, 242, 37, 0.1);
    border: 1px solid rgba(134, 242, 37, 0.3);
    border-radius: 8px;
}

.success-message p {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
