/* ═══════════════════════════════════════════════════════════════════════
   Friday Website Design System
   Matches Electron App aesthetic (Cream light / Nero dark)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    /* ── Friday Green Palette ── */
    --accent: #539E4F; /* App Green */
    --accent-hover: #458d41;
    --accent-glow: rgba(83, 158, 79, 0.3);
    
    /* Dark Mode (Default) */
    --bg: #0A0C12;
    --bg-surface: #121420;
    --bg-card: #1A1D2E;
    --bg-hover: #22263A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text: #F0F4FF;
    --text-secondary: #90A0C0;
    --text-muted: #5D6C8D;
    
    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Design System */
    --font: 'DM Sans', -apple-system, system-ui, sans-serif;
    --font-display: 'Funnel Display', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-card: #F1F5F9;
    --bg-hover: #E2E8F0;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Pushes footer to bottom on short pages */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* ── Typography ────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container,
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Utilities ────────────────────────────────────────────────────────── */

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.text-gradient-green {
    background: linear-gradient(135deg, var(--accent) 0%, #86efac 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Buttons (Polished) ── */
.btn {
    font-family: var(--font);
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill) !important;
}

.btn-primary {
    background: var(--accent);
    color: white !important;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-outlined {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text) !important;
}

.btn-outlined:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.theme-toggle-btn {
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="light"] .theme-toggle-btn {
    background: var(--bg-card);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Ensure consistent button height in navbar */
.navbar .btn {
    padding: 10px 25px;
    height: 42px;
}

.navbar .theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

section {
    padding: 60px 0;
}

/* ── Grid & Layout (get.tech pattern) ── */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    flex: 1 0 0%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-md-6 { flex: 0 0 auto; width: 50%; }
.col-md-7 { flex: 0 0 auto; width: 58.33333333%; }

@media (max-width: 768px) {
    .col-md-5, .col-md-6, .col-md-7 { width: 100%; }
}

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.border-top { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }
.text-center { text-align: center !important; }

/* ── Navbar (get.tech Clone) ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar__menu ul a {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: lowercase;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.navbar__menu ul a:hover {
    color: var(--accent);
}

#navbar-toggle {
    display: none;
}

@media (max-width: 992px) {
    #navbar-toggle { display: block; font-size: 1.5rem; color: var(--text); }
    .navbar__menu ul { display: none; }
    .navbar__menu ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-surface);
        padding: 2rem;
        border: 1px solid var(--border);
        min-width: 200px;
    }
}

/* ── Hero (get.tech Clone) ── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero__heading {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}

.hero__para {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero__search {
    max-width: 620px;
    margin: 0 auto;
}

.searchbar {
    display: flex;
    background: var(--bg-surface);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.searchbar__input {
    flex: 1;
}

.searchbar__input input {
    background: transparent !important;
    border: none !important;
    color: var(--text);
    padding: 12px 24px;
    width: 100%;
}

.searchbar .btn {
    border-radius: 50px;
    padding: 12px 40px;
}

.hero-shapes {
    position: absolute;
    width: 500px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

#hero-shape-1 { top: -100px; right: -200px; }
#hero-shape-2 { bottom: -200px; left: -200px; }

/* ── Usecases / Tabs (get.tech Clone) ── */
.usecases {
    padding: 100px 0;
}

.usecases h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
}

.usecases-tabs__heading h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    padding-bottom: 10px;
}

.usecases-tabs__heading h3.active {
    color: var(--text);
}

.usecases-tabs__heading h3.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.usecases-tabs__domain-list {
    display: none;
}

.usecases-tabs__domain-list.active {
    display: block;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* ── FAQs / Accordion (get.tech Clone) ── */
}

/* ── Navbar ── */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

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

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
    padding-top: 200px;
    padding-bottom: 200px;
    text-align: center;
    position: relative;
    background-image: 
        radial-gradient(var(--accent-glow) 1px, transparent 1px),
        radial-gradient(var(--accent-glow) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg) 80%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual {
    margin-top: 80px;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mockup App Window ── */
.mockup-app {
    width: 700px;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mockup-header {
    height: 32px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.mockup-body {
    display: flex;
    height: calc(100% - 32px);
}

.mockup-sidebar {
    width: 160px;
    border-right: 1px solid var(--border);
    padding: 20px;
}

.mockup-line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 80%;
}

.mockup-chat {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-msg {
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 60%;
}

.mockup-msg.alt {
    align-self: flex-end;
    background: var(--accent);
    border: none;
    opacity: 0.1;
    width: 40%;
}

/* ── Mockup HUD ── */
.mockup-hud {
    position: absolute;
    width: 280px;
    height: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px var(--accent-glow);
    right: 10%;
    top: 10%;
    z-index: 10;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.mockup-hud-mic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin: 0 auto 10px;
}

.mockup-hud-line {
    height: 12px;
    background: var(--accent);
    opacity: 0.2;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ── Features ─────────────────────────────────────────────────────────── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 32px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #65b861 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(83, 158, 79, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83, 158, 79, 0.4);
    background: linear-gradient(135deg, #65b861 0%, var(--accent) 100%);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    justify-self: end;
}

/* ── Legal Pages ───────────────────────────────────────────────────────── */

.legal-section {
    padding-top: 160px;
    padding-bottom: 120px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.legal-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.legal-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.legal-container li {
    margin-bottom: 10px;
}

/* ── Animations ────────────────────────────────────────────────────────── */

body.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

body.js-enabled [data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Contact & About Specifics ────────────────────────────────────────── */

.contact-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 40px auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: var(--text);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.cta-section {
    padding: 120px 0;
    text-align: center;
}

.final-cta {
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 24px;
}

.final-cta p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero h1 {
        font-size: 3rem;
    }
}