/* ========================================
   Borderlog Landing Page — Styles
   ======================================== */

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

:root {
    --bg-primary: #060608;
    --bg-secondary: #0d0d12;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 255, 255, 0.14);

    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6e;

    --accent-green: #00d26a;
    --accent-green-glow: rgba(0, 210, 106, 0.15);
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container-max: 1140px;
    --section-padding: 100px 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.header--scrolled {
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-card);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.header__logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.header__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.header__link:hover {
    color: var(--text-primary);
}


/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    border-bottom: 1px solid var(--border-card);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 10px 0;
    transition: color 0.2s;
}

.mobile-nav__link:hover {
    color: var(--text-primary);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    bottom: -50px;
    left: -100px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-green);
    background: var(--accent-green-glow);
    border: 1px solid rgba(0, 210, 106, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 24px;
}

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

.hero__title span {
    display: block;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00b85c 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* App Store Badge */
.appstore-badge {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.appstore-badge:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.appstore-badge__svg {
    width: 160px;
    height: 54px;
}

.appstore-badge--large .appstore-badge__svg {
    width: 180px;
    height: 60px;
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero__meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent-amber);
}

.hero__meta-divider {
    user-select: none;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-mockup__frame {
    position: relative;
    width: 280px;
    background: #1a1a1f;
    border-radius: 40px;
    padding: 12px 12px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 210, 106, 0.06);
}

.phone-mockup__notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #0a0a0f;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-mockup__screen {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.phone-mockup--small .phone-mockup__frame {
    width: 220px;
    border-radius: 32px;
    padding: 10px;
}

.phone-mockup--small .phone-mockup__notch {
    width: 80px;
    height: 20px;
    top: 10px;
    border-radius: 0 0 14px 14px;
}

.phone-mockup--small .phone-mockup__screen {
    border-radius: 24px;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon--blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}

.feature-card__icon--green {
    background: rgba(0, 210, 106, 0.12);
    color: var(--accent-green);
}

.feature-card__icon--amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
}

.feature-card__icon--red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ========================================
   SCREENSHOTS
   ======================================== */
.screenshots {
    padding: var(--section-padding);
}

.screenshots__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    justify-items: center;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item__label {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   CTA
   ======================================== */
.cta {
    position: relative;
    padding: var(--section-padding);
    background: var(--bg-secondary);
    overflow: hidden;
}

.cta__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 106, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cta__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 440px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-card);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer__name {
    font-size: 1rem;
    font-weight: 600;
}

.footer__links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer__link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--accent-green);
}

.footer__divider {
    color: var(--text-muted);
    user-select: none;
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in--delay-1 {
    transition-delay: 0.1s;
}

.fade-in--delay-2 {
    transition-delay: 0.2s;
}

.fade-in--delay-3 {
    transition-delay: 0.3s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        align-items: center;
    }

    .hero__meta {
        justify-content: center;
    }

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

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

    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero__title {
        font-size: 2rem;
    }

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

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

    .phone-mockup__frame {
        width: 240px;
    }

    .phone-mockup--small .phone-mockup__frame {
        width: 160px;
        border-radius: 24px;
        padding: 8px;
    }

    .phone-mockup--small .phone-mockup__notch {
        width: 60px;
        height: 16px;
        top: 8px;
        border-radius: 0 0 10px 10px;
    }

    .phone-mockup--small .phone-mockup__screen {
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.7rem;
    }

    .phone-mockup__frame {
        width: 200px;
        border-radius: 30px;
    }

    .phone-mockup--small .phone-mockup__frame {
        width: 140px;
        border-radius: 20px;
        padding: 6px;
    }

    .phone-mockup--small .phone-mockup__notch {
        width: 50px;
        height: 14px;
        border-radius: 0 0 8px 8px;
    }

    .phone-mockup--small .phone-mockup__screen {
        border-radius: 16px;
    }

    .screenshot-item__label {
        font-size: 0.75rem;
    }
}

/* ====== PRIVACY PAGE ====== */
.privacy-page {
    padding: 120px 0 80px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 40px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-content h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.privacy-content .effective-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.privacy-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s;
}

.privacy-content a:hover {
    color: #00e676;
    text-decoration: underline;
}

.privacy-content strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 24px;
    }
    .privacy-content h1 {
        font-size: 2rem;
    }
}


/* ====== SUPPORT & FAQ PAGE ====== */
.support-page {
    padding: 120px 0 80px;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-header {
    text-align: center;
    margin-bottom: 48px;
}

.support-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.support-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.support-contact {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.support-contact a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

.support-contact a:hover {
    text-decoration: underline;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-card-hover);
}

.faq-item summary {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    position: relative;
    user-select: none;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
}

.faq-item:hover summary::after {
    color: var(--accent-green);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--accent-green);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-card);
}

.faq-item .faq-body {
    padding: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-item .faq-body a {
    color: var(--accent-green);
    text-decoration: none;
}

.faq-item .faq-body a:hover {
    text-decoration: underline;
}

.faq-item .faq-body strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .support-header h1 {
        font-size: 2rem;
    }
    .faq-item summary {
        padding: 20px;
        font-size: 1rem;
        padding-right: 48px;
    }
    .faq-item .faq-body {
        padding: 20px;
    }
    .faq-item summary::after {
        right: 20px;
    }
}
