:root {
    --bg-color: #050506;
    --bg-raised: #0B0B0D;
    --card-bg: #1A1A1A;
    --text-primary: #ffffff;
    --text-secondary: #DDDDDD;
    --accent-color: #E21019;
    --accent-glow: rgba(226, 16, 25, 0.25);
    --gradient-start: #E21019;
    --gradient-end: #ff6b6b;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-speed: 0.3s;
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

/* Section Common */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* Previews */
.previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.preview-card {
    text-align: center;
}

.preview-card img {
    width: 100%;
    border-radius: 24px;
    /* Matches modern iOS curves */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.preview-card:hover img {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(226, 16, 25, 0.15);
    /* Red glow on hover */
}

.preview-card h3 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Support / Form */
.support-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.form-container {
    display: flex;
    justify-content: center;
}

.google-form-wrapper {
    width: 100%;
    max-width: 700px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.google-form-wrapper iframe {
    width: 100%;
    display: block;
    position: relative;
    /* important for z-index */
    z-index: 2;
}

/* Placeholder Overlay if iframe fails or is loading empty */
.form-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #666;
    z-index: 1;
    text-align: center;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* simple mobile menu hiding for mvp */
    }
}
/* Feature groups */
.feature-group-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin: 3rem 0 1.25rem;
}

.features-grid + .feature-group-title {
    margin-top: 3.5rem;
}

.feature-footnote {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hero-note {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* App icon color strip */
.icon-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.icon-strip img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    transition: transform var(--transition-speed);
}

.icon-strip img:hover {
    transform: scale(1.15);
}

/* ---- Depth & atmosphere ---- */

/* Ambient brand glows anchoring the page corners */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px circle at 12% -5%, rgba(226, 16, 25, 0.07), transparent 60%),
        radial-gradient(1100px circle at 90% 100%, rgba(226, 16, 25, 0.05), transparent 55%);
}

/* Signature: the measurement grid — the faint chart gridlines every WeFit
   screen is built on, fading toward the edges */
.hero::after,
#previews::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, black 30%, transparent 100%);
    mask-image: radial-gradient(75% 65% at 50% 45%, black 30%, transparent 100%);
}

#previews {
    position: relative;
}

.section > .container {
    position: relative;
    z-index: 1;
}

/* Raised planes for alternating sections, hairline-edged like app cards */
#features,
#support {
    background: var(--bg-raised);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: underline;
}

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

/* Privacy page */
.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem;
}

.legal h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal .updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.legal h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 0.75rem;
}

.legal p, .legal li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.legal ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* Theme preview: recolor the screenshots via the shared filter variable */
#previews .preview-card img {
    filter: var(--preview-filter, none);
    transition: filter 0.45s ease;
}

.icon-swatch {
    background: none;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 2px;
    cursor: pointer;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.icon-swatch img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.icon-swatch:hover {
    transform: scale(1.12);
}

.icon-swatch.selected {
    border-color: var(--text-secondary);
}

.icon-swatch:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}
