:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --border: #d2d2d7;
    --nav-bg: rgba(255, 255, 255, 0.72);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.hamburger .line {
    display: block;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}

.line1 { width: 100%; }
.line2 { width: 70%; }

.hamburger.active .line1 {
    transform: translateY(9px) rotate(45deg);
    width: 100%;
}
.hamburger.active .line2 {
    transform: translateY(-9px) rotate(-45deg);
    width: 100%;
}

/* Menu Overlay */
.menu-overlay[hidden] {
    display: none !important;
    pointer-events: none;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-links {
    list-style: none;
    text-align: center;
}

.menu-links li {
    margin: 2rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.menu-overlay.active .menu-links li {
    transform: translateY(0);
    opacity: 1;
}

.menu-overlay.active .menu-links li:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-links li:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.active .menu-links li:nth-child(3) { transition-delay: 0.2s; }

.menu-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    transition: color 0.2s;
}

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

/* Main Content */
main {
    padding-top: 100px;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 5% 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 980px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s;
    margin-bottom: 4rem;
}

.cta-button:hover {
    transform: scale(1.02);
    background-color: #333;
}

/* Hero Visual Placeholder */
.hero-image-placeholder {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.widget-mockup {
    width: 320px;
    height: 320px;
    background: #f5f5f7;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 24px;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}

.mockup-header {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.mockup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.note {
    background: #ffd966;
    border-radius: 16px;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    grid-column: 1 / span 2;
    color: #4a3e14;
}

.photo {
    background: #e1e1e1;
    border-radius: 16px;
    background-image: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.countdown {
    background: var(--text-primary);
    color: white;
    border-radius: 16px;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 5%;
}

.feature-card {
    background: #f5f5f7;
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

@media (min-width: 768px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Typography for legal pages */
.legal-content {
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 5%;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.legal-content .last-updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.legal-content ul {
    margin: 0 0 1.5rem 1.25rem;
    color: #333;
    line-height: 1.6;
}

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