/* ============================================
   MEGURU - Chronographic Design System
   Aesthetic: Luxury timepiece meets astronomical chart
   ============================================ */

:root {
    /* Core palette - deep space with warm accents */
    --bg: #0a0a0c;
    --bg-elevated: #121215;
    --bg-card: #18181b;
    --surface: #1f1f23;

    --text: #fafafa;
    --text-secondary: #71717a;
    --text-muted: #52525b;

    --accent: #c4a052;
    --accent-dim: rgba(196, 160, 82, 0.15);
    --accent-glow: rgba(196, 160, 82, 0.4);

    --ring: rgba(255, 255, 255, 0.06);
    --ring-strong: rgba(255, 255, 255, 0.12);

    /* Typography scale */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 48px;
    --space-2xl: 80px;
    --space-3xl: 120px;

    /* Layout */
    --max-width: 1000px;
    --radius: 12px;
}

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

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

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

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

/* ============================================
   Orbital Background Animation
   ============================================ */
.orbital-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200vmax;
    height: 200vmax;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--ring);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 40%;
    height: 40%;
    animation: orbit-rotate 120s linear infinite;
}

.orbit-2 {
    width: 65%;
    height: 65%;
    animation: orbit-rotate 180s linear infinite reverse;
}

.orbit-3 {
    width: 90%;
    height: 90%;
    animation: orbit-rotate 240s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}

.dot-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(20%);
    animation: dot-orbit-1 120s linear infinite;
}

.dot-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(32.5%);
    animation: dot-orbit-2 180s linear infinite reverse;
}

.dot-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(45%);
    animation: dot-orbit-3 240s linear infinite;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dot-orbit-1 {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(20vmax); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(20vmax); }
}

@keyframes dot-orbit-2 {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(32.5vmax); }
    to { transform: translate(-50%, -50%) rotate(-360deg) translateX(32.5vmax); }
}

@keyframes dot-orbit-3 {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(45vmax); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(45vmax); }
}

/* ============================================
   Header
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

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

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1px solid var(--ring-strong);
    border-radius: 100px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-switch:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.lang-switch svg {
    opacity: 0.5;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--ring-strong);
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.lang-option:hover {
    background: var(--surface);
    color: var(--text);
}

.lang-option.active {
    color: var(--accent);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-content {
    animation: fade-up 0.8s ease-out;
}

.hero-eyebrow {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 100px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-desc {
    max-width: 400px;
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 100px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

/* Phone Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fade-up 0.8s ease-out 0.15s both;
}

.phone-frame {
    position: relative;
    padding: 12px;
    background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1d 100%);
    border-radius: 44px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #0a0a0c;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.hero-image {
    display: block;
    width: 280px;
    border-radius: 32px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.4;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--ring);
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--accent);
    font-style: italic;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--ring);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg);
    opacity: 0;
    transform: translateX(-16px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--delay) * 0.08s);
}

.feature-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:hover {
    background: var(--bg-elevated);
}

.feature-marker {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
}

.feature-content h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Pro Section
   ============================================ */
.pro-section {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 0;
}

.pro-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.pro-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #d4b062 100%);
    color: var(--bg);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.pro-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.02em;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.pro-card {
    padding: var(--space-xl);
    background: var(--bg-elevated);
    border: 1px solid var(--ring);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pro-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pro-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(196, 160, 82, 0.15);
}

.pro-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 160, 82, 0.1);
    border: 1px solid rgba(196, 160, 82, 0.2);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.pro-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
}

.pro-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Pro CTA */
.pro-cta {
    text-align: center;
}

.trial-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--accent) 0%, #d4b062 100%);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.trial-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--ring);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    opacity: 0.7;
}

.footer-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 140px 0 var(--space-2xl);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 240px;
    }

    .phone-frame {
        padding: 10px;
        border-radius: 36px;
    }

    .phone-notch {
        width: 80px;
        height: 24px;
        top: 10px;
    }

    .nav-links > a {
        display: none;
    }

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

    .footer-container {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-image {
        width: 200px;
    }

    .feature-item {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .feature-marker {
        display: none;
    }
}

/* ============================================
   Privacy & Terms Page Styles
   ============================================ */
.content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.content > p:first-of-type {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
}

.content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text);
}

.content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.content li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

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

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

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