/* ============================================
   SONSUZ VİZE - Papers Please Themed Design
   A Bureaucracy Simulation Landing Page
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --cream: #FAF5E8;
    --paper: #F1E4CD;
    --ink: #333340;
    --navy: #264073;
    --navy-dark: #1a2d52;
    --stamp-red: #B32626;
    --stamp-green: #2D6B22;
    --stamp-yellow: #B8860B;
    --border: #B4AA9B;
    --border-light: #d4cfc5;
    --secondary: #8C8278;
    --disabled: #C8BEB4;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.08);

    --font: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;
    --max-width: 900px;
    --section-gap: 4rem;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--cream);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    color: var(--stamp-red);
}

/* --- Navigation --- */
.nav {
    background: var(--navy);
    border-bottom: 3px solid var(--stamp-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    color: var(--cream);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    text-decoration: none;
}

.nav-brand:hover {
    opacity: 1;
    color: var(--cream);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--cream);
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    font-family: var(--font);
}

/* --- Sections --- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-gap) 1.5rem;
}

.section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* --- Hero Section --- */
.hero {
    padding: 3rem 1.5rem 2rem;
}

.hero-form {
    max-width: 780px;
    margin: 0 auto;
    background: var(--cream);
    border: 2px solid var(--border);
    border-radius: 2px;
    padding: 2.5rem 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        3px 3px 0 var(--border),
        6px 6px 0 var(--border-light),
        9px 9px 0 #e8e3d9;
}

.hero-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--navy);
}

/* Paper clip decoration */
.hero-form::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 40px;
    width: 24px;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    transform: rotate(-5deg);
}

.hero-header {
    text-align: center;
    padding: 1rem 0;
    border-top: 2px double var(--navy);
    border-bottom: 2px double var(--navy);
    margin-bottom: 2rem;
}

.hero-header-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy);
}

.hero-form-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.625rem;
    color: var(--stamp-red);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-icon {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 16px var(--shadow);
}

.hero-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    color: var(--secondary);
    margin-bottom: 2rem;
    min-height: 1.7em;
}

.hero-subtitle .cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--secondary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Stamp overlay */
.stamp {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translate(0, -50%) rotate(-12deg) scale(0);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border: 4px solid;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

.stamp-approved {
    color: var(--stamp-green);
    border-color: var(--stamp-green);
}

.stamp-rejected {
    color: var(--stamp-red);
    border-color: var(--stamp-red);
}

.stamp.animate {
    animation: stampSlam 0.4s cubic-bezier(0.17, 0.67, 0.29, 1.2) forwards;
}

@keyframes stampSlam {
    0% {
        opacity: 0;
        transform: translate(0, -50%) rotate(-15deg) scale(1.8);
    }
    60% {
        opacity: 0.85;
        transform: translate(0, -50%) rotate(-11deg) scale(0.95);
    }
    100% {
        opacity: 0.75;
        transform: translate(0, -50%) rotate(-12deg) scale(1);
    }
}

/* App Store button */
.hero-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.app-store-btn {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid var(--ink);
}

.app-store-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

.app-store-btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero-note {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--disabled);
    margin-top: 0.75rem;
}

/* --- Stats Row --- */
.stats {
    padding: 2rem 1.5rem;
}

.stats-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--white);
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--navy);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Features Checklist --- */
.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px dashed var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: border-color 0.3s;
}

.feature-check::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2.5px solid var(--stamp-green);
    border-bottom: 2.5px solid var(--stamp-green);
    transform: rotate(-45deg) scale(0);
    transition: transform 0.3s cubic-bezier(0.17, 0.67, 0.29, 1.2);
    margin-top: -2px;
}

.feature-item.checked .feature-check {
    border-color: var(--stamp-green);
}

.feature-item.checked .feature-check::after {
    transform: rotate(-45deg) scale(1);
}

.feature-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.125rem;
}

.feature-desc {
    font-size: 0.8125rem;
    color: var(--secondary);
    line-height: 1.5;
}

/* --- How To Play Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    border-top: 2px dashed var(--border);
}

.step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    background: var(--cream);
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.8125rem;
    color: var(--secondary);
    line-height: 1.5;
}

/* --- About / Description --- */
.about-text {
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.85;
    max-width: 640px;
    padding: 1.5rem;
    border: 1px dashed var(--border);
    background: var(--white);
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--border-light);
    pointer-events: none;
}

/* Watermark seal */
.about-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px double rgba(178, 170, 155, 0.12);
    pointer-events: none;
}

/* --- Download CTA --- */
.cta-section {
    text-align: center;
    padding: var(--section-gap) 1.5rem;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40px, rgba(139, 90, 43, 0.04) 40px, rgba(139, 90, 43, 0.04) 48px, transparent 48px);
    pointer-events: none;
}

.cta-stamp {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--stamp-green);
    border: 5px solid var(--stamp-green);
    border-radius: 12px;
    padding: 0.5rem 2rem;
    letter-spacing: 0.1em;
    transform: rotate(-5deg);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(-5deg) scale(1.02); }
}

.cta-text {
    font-size: 1.125rem;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.cta-sub {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    border-top: 3px double var(--border);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-col {
    font-size: 0.75rem;
    color: var(--secondary);
}

.footer-col a {
    color: var(--secondary);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--navy);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

.footer-disclaimer {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.625rem;
    color: var(--disabled);
    text-align: center;
    line-height: 1.5;
}

/* --- Content Pages (Privacy, FAQ, Support) --- */
.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.page-date {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.page-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.page-body h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-body p {
    font-size: 0.875rem;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.page-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.page-body li {
    font-size: 0.875rem;
    color: var(--ink);
    margin-bottom: 0.375rem;
    line-height: 1.6;
}

.page-body strong {
    font-weight: 600;
}

.page-body a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-body a:hover {
    color: var(--stamp-red);
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.8125rem;
}

.page-body th,
.page-body td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border: 1px solid var(--border);
}

.page-body th {
    background: var(--paper);
    font-weight: 600;
    color: var(--navy);
}

/* --- FAQ Accordion --- */
.faq-list {
    list-style: none;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--navy);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--secondary);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 0.8125rem;
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- FAQ Category Headings --- */
.faq-category {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.faq-category:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* --- Support Page --- */
.support-box {
    border: 1px dashed var(--border);
    padding: 2rem;
    background: var(--white);
    max-width: 500px;
}

.support-email {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--navy);
    text-decoration: none;
    margin: 1rem 0;
    transition: background 0.2s, color 0.2s;
}

.support-email:hover {
    background: var(--navy);
    color: var(--cream);
}

.support-info {
    font-size: 0.8125rem;
    color: var(--secondary);
    line-height: 1.7;
}

.support-info li {
    margin-bottom: 0.25rem;
}

/* --- Back Link --- */
.back-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--navy);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --section-gap: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-bottom: 3px solid var(--stamp-yellow);
        gap: 0.75rem;
    }

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

    .nav-links a {
        font-size: 0.875rem;
        padding: 0.375rem 0;
    }

    .nav-mobile-toggle {
        display: block;
    }

    .hero {
        padding: 2rem 1rem 1.5rem;
    }

    .hero-form {
        padding: 2rem 1.25rem 1.5rem;
    }

    .hero-form::after {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-icon {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    .stamp {
        font-size: 1.25rem;
        padding: 0.25rem 0.75rem;
        border-width: 3px;
        right: -5px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .steps::before {
        display: none;
    }

    .step {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .cta-stamp {
        font-size: 1.75rem;
        padding: 0.4rem 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-form {
        padding: 1.5rem 1rem 1.25rem;
        box-shadow:
            2px 2px 0 var(--border),
            4px 4px 0 var(--border-light);
    }

    .hero-form-number {
        position: static;
        text-align: right;
        margin-bottom: 0.5rem;
    }

    .feature-item {
        gap: 0.75rem;
    }
}
