/* FotoboksVarsel Website — Dark, Premium, Driving-Focused */
/* Matching the app's dark UI with orange warning accents */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #202020;
    --bg-hero: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #1a0f0a 100%);
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;
    --accent-orange: #FF9500;
    --accent-orange-dim: #cc7700;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --border-color: #2a2a2a;
    --border-light: #1f1f1f;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-orange: 0 4px 20px rgba(255,149,0,0.15);
    --card-radius: 14px;
    --transition: 0.25s ease;
    --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-stack);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-brand .icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-orange);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== HERO ===== */
.hero {
    background: var(--bg-hero);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,149,0,0.12) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-orange);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-pill .emoji { font-size: 1rem; }

.coming-soon-label {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: rgba(255,149,0,0.1);
    border: 1px solid rgba(255,149,0,0.3);
    border-radius: 100px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 60px 0 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 26px 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange-dim);
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 10px;
    background: rgba(255,149,0,0.1);
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    align-self: flex-start;
}

/* ===== CONTENT ===== */
.page-header {
    padding-top: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 36px;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.back-link:hover { text-decoration: underline; }

.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px 28px;
    margin-bottom: 24px;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text-primary);
}

.content-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.75;
}

.content-section ul,
.content-section ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

.content-section li {
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.7;
}

.content-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-section code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 0.9em;
    color: var(--accent-orange);
}

.content-section a {
    color: var(--accent-orange);
    text-decoration: none;
}

.content-section a:hover { text-decoration: underline; }

.callout {
    background: rgba(255,149,0,0.08);
    border-left: 3px solid var(--accent-orange);
    padding: 14px 18px;
    border-radius: 6px;
    margin: 16px 0;
    color: var(--text-primary);
}

.callout-warning {
    background: rgba(239,68,68,0.08);
    border-left-color: var(--accent-red);
}

.callout-success {
    background: rgba(16,185,129,0.08);
    border-left-color: var(--accent-green);
}

/* ===== TABLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

tr:last-child td { border-bottom: none; }

/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

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

.submit-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    align-self: flex-start;
    box-shadow: var(--shadow-orange);
}

.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,149,0,0.25); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: var(--accent-green);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--accent-red);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 24px 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer p { margin-bottom: 6px; }

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 4px;
}

footer a:hover { color: var(--accent-orange); }

/* ===== APP STORE BADGE (Apple-style "Coming Soon") ===== */
.app-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: #000;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 200px;
    transition: all var(--transition);
    cursor: default;
}

.app-store-badge.unavailable {
    opacity: 0.85;
}

.app-store-badge:hover { transform: translateY(-1px); border-color: var(--accent-orange-dim); }

.app-store-badge .badge-glyph {
    font-size: 1.8rem;
    line-height: 1;
}

.app-store-badge .badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.app-store-badge .badge-pretitle {
    font-size: 0.72rem;
    color: #d0d0d0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.app-store-badge .badge-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.2px;
}

.app-store-badge.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-store-badge.disabled:hover {
    transform: none;
    border-color: #2a2a2a;
}

/* ===== HERO VIDEO ===== */
.hero-video-wrap {
    max-width: 320px;
    margin: 28px auto 0;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(255,149,0,0.15);
    border: 8px solid #1a1a1a;
    background: #000;
    aspect-ratio: 9 / 19.5;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== SCREENSHOT GALLERY ===== */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 32px 0;
    align-items: start;
}

.screenshot-frame {
    background: #1a1a1a;
    border: 4px solid #2a2a2a;
    border-radius: 28px;
    padding: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 9 / 19.5;
    position: relative;
}

.screenshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.screenshot-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 16px;
    border: 1px dashed var(--border-color);
}

.screenshot-placeholder .icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ===== NEW / UPDATED TAG ===== */
.new-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 100px;
    vertical-align: middle;
    text-transform: uppercase;
}

.card-new-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 9px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 100px;
    text-transform: uppercase;
    box-shadow: var(--shadow-orange);
}

.card { position: relative; }

/* ===== WHAT'S NEW STRIP ===== */
.whats-new {
    background: linear-gradient(135deg, rgba(255,149,0,0.08), rgba(239,68,68,0.05));
    border: 1px solid rgba(255,149,0,0.2);
    border-radius: var(--card-radius);
    padding: 28px;
    margin: 30px 0;
}

.whats-new h2 {
    color: var(--accent-orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.whats-new-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.whats-new-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.whats-new-list li::before {
    content: '✨';
    flex-shrink: 0;
}

/* ===== CTA ROW ===== */
.cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.cta-link.primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.cta-link.secondary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.cta-link:hover { transform: translateY(-1px); }

/* ===== COUNTRY STRIP ===== */
.country-strip {
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: center;
    margin: 18px 0 0;
    flex-wrap: wrap;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.country-chip .flag { font-size: 1.2rem; line-height: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-color);
        gap: 12px;
    }
    .nav-links.open { display: flex; }

    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-tagline { font-size: 1.05rem; }

    .page-header h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .content-section { padding: 22px 18px; }
    .content-section h2 { font-size: 1.3rem; }

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

    .hero-video-wrap { max-width: 260px; border-width: 6px; border-radius: 30px; }
    .app-store-badges { gap: 8px; }
    .app-store-badge { min-width: 0; flex: 1 1 100%; max-width: 280px; padding: 8px 14px; }
    .app-store-badge .badge-title { font-size: 1rem; }
    .screenshot-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .screenshot-frame { border-width: 3px; border-radius: 22px; }
    .screenshot-frame img { border-radius: 18px; }
    .whats-new { padding: 20px; }
    .whats-new-list { grid-template-columns: 1fr; }
}
