/* === Haviland Landing Page — Black & Gold === */

:root {
    --bg-1: #030712;
    --bg-2: #0a0e14;
    --bg-3: #111827;
    --bg-4: #1f2937;
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #a67c2e;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(201, 168, 76, 0.1);
    --border-light: rgba(201, 168, 76, 0.2);
    --gradient-gold: linear-gradient(135deg, #a67c2e 0%, #c9a84c 40%, #e2c97e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(226, 201, 126, 0.08));
    --radius: 12px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-1);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* === Nav === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

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

.nav-logo span {
    font-weight: 600;
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.nav-pricing {
    color: var(--gold) !important;
    font-weight: 600;
}

.nav-pricing:hover {
    color: var(--gold-light) !important;
}

.nav-download-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold-light) !important;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-download-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
    color: var(--text-primary) !important;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("haviland-bg.png") center center no-repeat;
    background-size: cover;
    opacity: 0.12;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, rgba(166, 124, 46, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

.hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.3);
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero h1 .gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    padding: 14px 36px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--radius);
    color: #030712;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-primary svg {
    stroke: #030712;
}

.btn-secondary {
    padding: 14px 36px;
    background: var(--bg-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-4);
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* === Section === */
.section {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header h2 .gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* === Update Cards === */
.update-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.update-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-gold);
}

.update-version {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.update-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th {
    text-align: left;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.compare-table th:nth-child(2),
.compare-table th:nth-child(3) {
    text-align: center;
}

.compare-table th:nth-child(2) {
    color: #ef4444;
}

.compare-table th:nth-child(3) {
    color: #22c55e;
}

.compare-table td {
    padding: 10px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
    text-align: center;
}

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

.compare-table td.no {
    color: #ef4444;
}

.compare-table td:nth-child(2).yes {
    color: rgba(255, 255, 255, 0.7);
}

.compare-table td:nth-child(3).yes {
    color: #22c55e;
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(201, 168, 76, 0.05);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-glow);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

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

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

/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 780px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-2);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.pricing-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #030712;
    background: var(--gradient-gold);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-subtitle {
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "\2713";
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.pricing-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.pricing-card .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pricing-card.pro {
    border-color: var(--border);
    opacity: 0.75;
}

.pricing-badge.planned {
    background: var(--bg-4);
    color: var(--text-secondary);
}

.pricing-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* === Download CTA === */
.download-section {
    padding: 100px 24px;
    text-align: center;
    position: relative;
}

.download-section::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.download-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-2);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
}

.download-card h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.download-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-card .btn-primary {
    font-size: 18px;
    padding: 16px 48px;
}

.download-version {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* === Footer === */
.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer strong {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Responsive === */

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* All mobile — 768px and below */
@media (max-width: 768px) {
    /* Nav */
    .nav { padding: 12px 16px; }
    .nav-links { gap: 12px; }
    .nav-links a:not(.nav-download-btn):not(.nav-pricing) { display: none; }
    .nav-pricing { font-size: 13px !important; }
    .nav-download-btn { padding: 6px 14px; font-size: 13px; }

    /* Hero — fluid sizing */
    .hero { padding: 90px 5vw 50px; min-height: auto; }
    .hero::after { width: 80vw; height: 80vw; max-width: 350px; max-height: 350px; }
    .hero-logo { width: clamp(64px, 18vw, 90px); height: clamp(64px, 18vw, 90px); border-radius: 18px; margin-bottom: 20px; }
    .hero h1 { font-size: clamp(28px, 7.5vw, 38px); }
    .hero .tagline { font-size: clamp(14px, 3.8vw, 17px); margin-bottom: 24px; max-width: 100%; padding: 0 2vw; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; padding: 0 4vw; }
    .hero-buttons .btn-primary { width: 100%; justify-content: center; text-align: center; padding: 14px 24px; font-size: 15px; }
    .hero-note { font-size: 12px; }

    /* Sections */
    .section { padding: 50px 5vw; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: clamp(22px, 6vw, 28px); }
    .section-header p { font-size: clamp(13px, 3.5vw, 15px); max-width: 100%; }

    /* Updates — scrollable table */
    .update-card { padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .compare-table { min-width: 360px; }
    .compare-table th, .compare-table td { padding: 8px 8px; font-size: clamp(11px, 3vw, 13px); white-space: nowrap; }
    .compare-table td:nth-child(3).yes { white-space: normal; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card { padding: 20px 18px; }
    .feature-card:hover { transform: none; }
    .feature-card h3 { font-size: 16px; }
    .feature-card p { font-size: 13px; }
    .feature-icon { width: 42px; height: 42px; font-size: 20px; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
    .pricing-card { padding: clamp(24px, 7vw, 36px) clamp(18px, 5vw, 28px); border-radius: 20px; }
    .pricing-price { font-size: clamp(36px, 10vw, 48px); }
    .pricing-subtitle { font-size: 14px; margin-bottom: 20px; }
    .pricing-features li { font-size: 13px; padding: 7px 0; }
    .pricing-note { font-size: 12px; }
    .pricing-card .btn-primary,
    .pricing-card .btn-secondary { padding: 12px 24px; font-size: 15px; }
    .pricing-logo { width: 40px; height: 40px; }

    /* Download */
    .download-section { padding: 50px 5vw; }
    .download-section::before { width: 70vw; height: 70vw; max-width: 300px; max-height: 300px; }
    .download-card { padding: clamp(24px, 7vw, 36px) clamp(16px, 5vw, 24px); border-radius: 20px; }
    .download-card h2 { font-size: clamp(22px, 6vw, 28px); }
    .download-card p { font-size: 14px; margin-bottom: 24px; }
    .download-card .btn-primary { font-size: 15px; padding: 14px 28px; width: 100%; justify-content: center; }
    .download-version { font-size: 12px; }

    /* Footer */
    .footer { padding: 24px 16px; }
}

/* Small phones — Samsung S7/S8 (360px), iPhone 7 (375px) */
@media (max-width: 390px) {
    .nav { padding: 10px 12px; }
    .nav-logo img { width: 28px; height: 28px; }
    .nav-logo span { font-size: 15px; }
    .nav-pricing { display: none !important; }
    .nav-download-btn { padding: 5px 12px; font-size: 12px; }

    .hero { padding: 80px 16px 40px; }
    .hero-logo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 16px; }
    .hero h1 { font-size: 26px; line-height: 1.15; }
    .hero .tagline { font-size: 13px; margin-bottom: 20px; }
    .hero-buttons { padding: 0; }
    .hero-buttons .btn-primary { padding: 12px 20px; font-size: 14px; }

    .section { padding: 40px 14px; }
    .section-header h2 { font-size: 21px; }

    .update-card { padding: 14px 12px; }
    .compare-table { min-width: 320px; }
    .compare-table th, .compare-table td { padding: 6px 6px; font-size: 11px; }

    .feature-card { padding: 18px 16px; }
    .feature-icon { width: 38px; height: 38px; font-size: 18px; margin-bottom: 12px; }
    .feature-card h3 { font-size: 15px; }
    .feature-card p { font-size: 12px; }

    .pricing-card { padding: 24px 16px; }
    .pricing-price { font-size: 34px; }
    .pricing-features li { font-size: 12px; }
    .pricing-note { font-size: 11px; }

    .download-card { padding: 24px 16px; }
    .download-card h2 { font-size: 21px; }
    .download-card p { font-size: 13px; }
    .download-card .btn-primary { font-size: 14px; padding: 12px 20px; }
}

/* Extra large phones — S22 Ultra (384px), S25 Ultra/Plus (412px), iPhone 17 (~430px) */
@media (min-width: 391px) and (max-width: 430px) {
    .nav-pricing { font-size: 13px !important; }
    .hero h1 { font-size: 30px; }
    .hero .tagline { font-size: 15px; }
    .hero-logo { width: 76px; height: 76px; }
    .section-header h2 { font-size: 24px; }
    .pricing-price { font-size: 40px; }
    .download-card h2 { font-size: 24px; }
}
