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

:root {
    --teal: #2dd4bf;
    --teal-dark: #14b8a6;
    --teal-light: #ccfbf1;
    --navy: #0f172a;
    --slate-900: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1120px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--slate-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    flex-shrink: 0;
    min-width: 0;
}

.nav-logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
    transition: color 0.2s;
}

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

/* Language switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-500);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--slate-500);
    color: var(--navy);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    min-width: 140px;
    z-index: 200;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
    border-radius: 6px;
    transition: background 0.15s;
}

.lang-dropdown a:hover {
    background: var(--slate-100);
}

.lang-dropdown a.lang-active {
    color: var(--teal-dark);
    font-weight: 700;
}

.nav-cta {
    background: var(--teal);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--teal-dark) !important;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--slate-100) 100%);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--slate-500);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-price-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
    background: var(--slate-100);
    border-color: var(--slate-500);
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: start;
}

.hero-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-image-item img {
    width: 100%;
    display: block;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-image-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-500);
    letter-spacing: 0.01em;
}

/* ===== Sections ===== */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 17px;
    color: var(--slate-500);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    padding: 100px 24px;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ===== Deep Dive Sections ===== */
.deep-dive {
    padding: 100px 24px;
    background: var(--white);
}

.deep-dive-alt {
    background: var(--slate-100);
}

.deep-dive-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.deep-dive-reverse {
    direction: rtl;
}

.deep-dive-reverse > * {
    direction: ltr;
}

.deep-dive-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.deep-dive-text h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.deep-dive-text > p {
    font-size: 16px;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.deep-dive-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deep-dive-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--slate-700);
    line-height: 1.6;
}

.deep-dive-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--teal);
    border-radius: 50%;
}

.deep-dive-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-width: 320px;
    background: linear-gradient(135deg, #e0f7f5 0%, #e0f0ff 100%);
    border-radius: 28px;
    border: 2px dashed var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

/* Sampling auto-fields callout */
.sampling-auto-fields {
    margin-top: 56px;
    padding: 36px;
    background: var(--slate-100);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.sampling-auto-fields h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.sampling-auto-fields > p {
    font-size: 15px;
    color: var(--slate-500);
    margin-bottom: 24px;
}

.auto-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.auto-field {
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.auto-field code {
    display: inline-block;
    padding: 3px 10px;
    background: var(--teal-light);
    color: var(--teal-dark);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 8px;
}

.auto-field span {
    display: block;
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .deep-dive {
        padding: 60px 20px;
    }

    .deep-dive-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .deep-dive-reverse {
        direction: ltr;
    }

    .image-placeholder {
        max-width: 240px;
        margin: 0 auto;
    }

    .sampling-auto-fields {
        margin-top: 36px;
        padding: 24px;
    }

    .auto-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Screenshots ===== */
.screenshots {
    padding: 100px 24px;
    background: var(--slate-100);
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.phone-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1120px;
    gap: 20px;
}

.phone-frame {
    text-align: center;
    transition: transform 0.2s;
}

.phone-frame:hover {
    transform: translateY(-4px);
}

.phone-screen {
    background: var(--navy);
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.phone-screen img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.phone-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 16px;
}

/* Placeholder for missing screenshots */
.placeholder, .placeholder-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #e0f7f5 0%, #e0f0ff 100%);
    color: var(--teal-dark);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.placeholder-hero {
    min-height: 400px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

/* ===== Use Cases ===== */
.use-cases {
    padding: 100px 24px;
    background: var(--white);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.use-case-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.use-case-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
}

.use-case-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ===== Guides Section ===== */
.guides-section {
    padding: 100px 24px;
    background: var(--slate-100);
}

.guides-section .guides-grid {
    margin-top: 0;
}

/* ===== Formats ===== */
.formats {
    padding: 100px 24px;
    background: var(--white);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.format-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.format-card:hover {
    border-color: var(--teal);
}

.format-ext {
    font-size: 28px;
    font-weight: 800;
    color: var(--teal);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 8px;
}

.format-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.format-desc {
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ===== Download ===== */
.download {
    padding: 100px 24px;
    background: var(--navy);
    text-align: center;
}

.download .section-inner {
    max-width: 640px;
}

.download-icon {
    margin: 0 auto 24px;
    border-radius: 16px;
}

.download h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.download p {
    font-size: 17px;
    color: var(--slate-300);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition: all 0.2s;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    min-width: 180px;
}

.store-badge-inner small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    line-height: 1;
}

.store-badge-inner strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 24px;
    background: var(--slate-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--white);
    font-size: 15px;
}

.footer-brand img {
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--slate-500);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 12px;
    color: var(--slate-500);
}

/* ===== Responsive ===== */
/* ===== RTL Support ===== */
[dir="rtl"] .deep-dive-list li {
    padding-left: 0;
    padding-right: 24px;
}

[dir="rtl"] .deep-dive-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .deep-dive-reverse {
    direction: ltr;
}

[dir="rtl"] .deep-dive-reverse > * {
    direction: rtl;
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-cta):not(.lang-switcher *) {
        display: none;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-images {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .features {
        padding: 60px 20px;
    }

    .screenshots {
        padding: 60px 20px;
    }

    .formats {
        padding: 60px 20px;
    }

    .download {
        padding: 60px 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .phone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .phone-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ===== Article Pages ===== */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.article h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.article .article-meta {
    color: var(--slate-500);
    font-size: 14px;
    margin-bottom: 32px;
}

.article h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 48px;
    margin-bottom: 16px;
}

.article h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 12px;
}

.article p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--slate-700);
    margin-bottom: 16px;
}

.article ul, .article ol {
    padding-left: 1.5rem;
    margin-bottom: 16px;
}

.article li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--slate-700);
    margin-bottom: 8px;
}

.article a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-decoration-color: var(--teal);
    text-underline-offset: 3px;
}

.article a:hover {
    color: var(--teal);
}

.article img {
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin: 24px 0;
}

.article .article-image {
    text-align: center;
    margin: 32px 0;
}

.article .article-image img {
    max-width: 360px;
    width: 100%;
}

.article .article-image figcaption {
    font-size: 13px;
    color: var(--slate-500);
    margin-top: 8px;
    font-style: italic;
}

.article .image-placeholder-article {
    max-width: 360px;
    margin: 32px auto;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, #e0f7f5 0%, #e0f0ff 100%);
    border-radius: var(--radius);
    border: 2px dashed var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.article .callout {
    padding: 24px;
    background: var(--teal-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--teal);
    margin: 24px 0;
}

.article .callout p {
    margin-bottom: 0;
    color: var(--slate-900);
}

.article .cta-box {
    text-align: center;
    padding: 40px;
    background: var(--slate-100);
    border-radius: var(--radius-lg);
    margin: 48px 0 0;
}

.article .cta-box h3 {
    margin-top: 0;
}

.article .cta-box p {
    color: var(--slate-500);
    margin-bottom: 20px;
}

/* Guides index */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.guide-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    display: block;
}

.guide-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
}

.guide-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 14px;
    color: var(--slate-500);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article {
        padding: 100px 20px 60px;
    }
    .article .article-image img {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-images {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }

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

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

    .phone-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .phone-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}
/* end */
