/* ============================================
   Tripory Promo Website - Dark Luxurious Theme
   Colors: Deep Navy + Gold Accents
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111627;
    --bg-card: #161c30;
    --bg-card-hover: #1c2440;
    --gold: #f0c040;
    --gold-light: #f5d470;
    --gold-dark: #c9a020;
    --text-primary: #e8eaf0;
    --text-secondary: #9ba3b8;
    --text-muted: #6b7490;
    --border-color: #242c48;
    --border-gold: rgba(240, 192, 64, 0.25);
    --shadow: 0 4px 24px rgba(0,0,0,0.35);
    --shadow-gold: 0 4px 20px rgba(240, 192, 64, 0.15);
    --radius: 10px;
    --radius-lg: 16px;
    --max-width: 1100px;
    --nav-height: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.2; margin-bottom: .6em; }
h2 { font-size: 1.7rem; font-weight: 700; line-height: 1.25; margin-bottom: .5em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin-bottom: .4em; }
p  { margin-bottom: 1em; color: var(--text-secondary); }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-height);
    background: rgba(10,14,26,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.nav-logo {
    font-size: 1.25rem; font-weight: 700; color: var(--gold);
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.nav-logo span { font-size: 1.1rem; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    color: var(--text-secondary); font-size: .9rem; font-weight: 500;
    transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); margin: 5px 0;
    transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
    font-size: .95rem; cursor: pointer; border: none;
    transition: all .25s; text-align: center; gap: 8px;
    line-height: 1.2;
}
.btn-primary {
    background: var(--gold); color: #0a0e1a;
}
.btn-primary:hover { background: var(--gold-light); color: #0a0e1a; box-shadow: var(--shadow-gold); }
.btn-outline {
    background: rgba(240,192,64,.08); color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-outline:hover { background: rgba(240,192,64,.18); color: var(--gold-light); }
.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    background: linear-gradient(170deg, var(--bg-primary) 0%, #0f1528 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(240,192,64,.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-content { max-width: 520px; }
.hero-tagline {
    display: inline-block; font-size: .8rem; font-weight: 600;
    color: var(--gold); background: rgba(240,192,64,.1);
    padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
    letter-spacing: .5px; text-transform: uppercase;
}
.hero-title { font-size: 2.6rem; line-height: 1.15; }
.hero-title .highlight { color: var(--gold); }
.hero-desc { font-size: 1.05rem; color: var(--text-secondary); margin: 20px 0 28px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Device Mockup */
.device-mockup {
    max-width: 280px;
    margin: 0 auto;
    position: relative;
}
.device-frame {
    position: relative;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5), inset 0 0 0 2px #2a2a40;
}
.device-frame::before {
    content: '';
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 4px;
    background: #2a2a40; border-radius: 4px;
}
.device-frame img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

/* ---------- Screenshots Carousel ---------- */
.screenshots-section {
    padding: 64px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-header h2 { color: var(--text-primary); }
.section-header p { color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 380px;
}
.carousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    height: 100%;
    align-items: center;
    justify-content: center;
}
.carousel-slide {
    flex: 0 0 220px;
    padding: 0 10px;
    transition: opacity .4s, transform .4s;
    opacity: .4;
    transform: scale(.85);
}
.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}
.carousel-slide .device-frame {
    max-width: 200px;
    margin: 0 auto;
}
.carousel-slide .device-frame img {
    height: 320px;
    object-fit: cover;
    width: 100%;
}

/* Carousel controls */
.carousel-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 20px;
}
.carousel-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-primary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; font-size: 1.1rem;
}
.carousel-btn:hover { background: var(--gold); color: #0a0e1a; border-color: var(--gold); }
.carousel-dots {
    display: flex; gap: 8px;
}
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-color); border: none; cursor: pointer;
    transition: all .25s;
}
.carousel-dot.active {
    background: var(--gold); width: 24px; border-radius: 4px;
}

/* ---------- Features ---------- */
.features-section {
    padding: 72px 0;
}
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: rgba(240,192,64,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 14px;
}
.feature-text { text-align: left; }
.feature-text h3 { color: var(--text-primary); font-size: 1.3rem; }
.feature-text p { color: var(--text-secondary); }
.feature-text ul { margin-top: 10px; }
.feature-text ul li {
    color: var(--text-secondary); padding: 4px 0 4px 20px;
    position: relative; font-size: .93rem;
}
.feature-text ul li::before {
    content: ''; position: absolute; left: 0; top: 12px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
}
.feature-visual {
    display: flex; align-items: center; justify-content: center;
}
.feature-card-img {
    max-width: 180px; border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #121830 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { max-width: 480px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 32px;
}
.footer-brand p { color: var(--text-muted); font-size: .88rem; margin-top: 8px; }
.footer-heading {
    font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 14px;
}
.footer-links a {
    display: block; color: var(--text-secondary); font-size: .9rem;
    padding: 4px 0; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px; text-align: center;
    color: var(--text-muted); font-size: .82rem;
}

/* ---------- Content Pages (Privacy, Terms, Contact) ---------- */
.page-header {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 36px;
    background: linear-gradient(170deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}
.page-header h1 { font-size: 2rem; }
.page-header p { color: var(--text-secondary); }

.content-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    text-align: left;
}
.content-wrap h2 {
    color: var(--gold); font-size: 1.35rem;
    margin-top: 32px; margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}
.content-wrap h3 {
    color: var(--text-primary); font-size: 1.1rem;
    margin-top: 20px; margin-bottom: 8px;
}
.content-wrap p { color: var(--text-secondary); line-height: 1.7; }
.content-wrap ul, .content-wrap ol {
    margin: 10px 0 16px 20px;
}
.content-wrap ul { list-style: disc; }
.content-wrap ol { list-style: decimal; }
.content-wrap li {
    color: var(--text-secondary); padding: 3px 0;
    line-height: 1.6; font-size: .93rem;
}
.content-wrap a { color: var(--gold); text-decoration: underline; }
.content-wrap a:hover { color: var(--gold-light); }
.effective-date {
    display: inline-block; font-size: .85rem; color: var(--text-muted);
    background: var(--bg-card); padding: 6px 14px;
    border-radius: 6px; margin-bottom: 24px;
}

/* ---------- Contact Form ---------- */
.contact-section { padding: 48px 0 60px; }
.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: .88rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary); font-size: .93rem;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,192,64,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
    background: var(--gold); color: #0a0e1a;
    border: none; padding: 6px 14px;
    border-radius: 6px; font-weight: 600;
    cursor: pointer; margin-right: 10px;
    font-size: .82rem;
}
.form-success {
    display: none;
    text-align: center; padding: 32px;
}
.form-success .checkmark {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(240,192,64,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 16px;
}

/* ---------- Privacy Accept Button (Flutter) ---------- */
.privacy-accept-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(10,14,26,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gold);
    padding: 16px 24px;
    text-align: center;
}
.privacy-accept-bar .btn {
    min-width: 220px; font-size: 1rem; padding: 16px 40px;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none; position: fixed; inset: 0;
    z-index: 1000; background: rgba(0,0,0,.9);
    align-items: center; justify-content: center;
    padding: 24px;
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 90vw; max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(0,0,0,.6);
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: #fff;
    font-size: 2rem; cursor: pointer; opacity: .7;
    transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { max-width: 560px; margin: 0 auto; text-align: left; }
    .hero-tagline { display: inline-block; }
    .hero-buttons { justify-content: flex-start; }
    .device-mockup { max-width: 220px; margin: 32px auto 0; }
    .feature-row { grid-template-columns: 1fr; text-align: center; }
    .feature-row.reverse .feature-visual { order: 0; }
    .feature-icon { margin: 0 auto 14px; }
    .feature-text { text-align: left; }
    .feature-visual { margin-bottom: 24px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .carousel-slide { flex: 0 0 180px; }
    .carousel-wrapper { height: 340px; }
    .carousel-slide .device-frame img { height: 280px; }
}
@media (max-width: 600px) {
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.25rem; }
    .hero-title { font-size: 1.85rem; }
    .section { padding: 48px 0; }
    .container { padding: 0 16px; }
    .contact-card { padding: 24px 18px; }
    .nav-links {
        display: none;
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: rgba(10,14,26,.98);
        flex-direction: column;
        padding: 16px 0; gap: 0;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 24px; width: 100%; }
    .nav-toggle { display: block; }
    .carousel-slide { flex: 0 0 160px; }
    .carousel-wrapper { height: 300px; }
    .carousel-slide .device-frame img { height: 240px; }
    .device-mockup { max-width: 180px; }
}

/* ---------- Animations (subtle fade-in) ---------- */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1; transform: translateY(0);
}

/* ---------- Image lazy-load blur ---------- */
img.lazy {
    filter: blur(8px);
    transition: filter .4s ease;
}
img.lazy.loaded {
    filter: blur(0);
}
