@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,600;0,800;1,400&display=swap');

:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #6B7280;
    --border: #F0F0F0;
    --surface: #F8F9FA;
    --accent: #0EA5E9;
    --accent-dim: rgba(14, 165, 233, 0.10);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0; padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ── Header ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    border-radius: 0;
    width: 100%;
}

header.scrolled {
    padding: 10px 24px;
    top: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.06);
    width: calc(100% - 48px);
    max-width: 800px;
    left: 0; right: 0;
    margin-left: auto;
    margin-right: auto;
}

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

.logo-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    overflow: hidden;
}

.logo-mark img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--text);
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-sm:hover { opacity: 0.85; transform: scale(1.02); }

/* ── Hero ── */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin: 0 0 20px;
}

.hero-sub {
    font-size: 1.3rem;
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn:hover { opacity: 0.88; transform: scale(1.02); }

/* ── Phone Visuals ── */
.visuals {
    margin: 60px 0 140px;
    text-align: center;
    position: relative;
    height: 800px;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.phone-container {
    position: relative;
    width: 300px;
    height: 700px;
}

.phone {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    transition: transform 0.5s ease;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22);
    border: 8px solid #111;
    background: #111;
}

.phone img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    border-radius: 32px;
}

.phone.left  { z-index: 1; transform: translateX(-140px) translateY(40px) rotate(-15deg); }
.phone.right { z-index: 1; transform: translateX(140px) translateY(40px) rotate(15deg); }
.phone.center { z-index: 10; transform: translateY(0) scale(1.1); }
.phone-container:hover .phone.left  { transform: translateX(-160px) translateY(40px) rotate(-20deg); }
.phone-container:hover .phone.right { transform: translateX(160px) translateY(40px) rotate(20deg); }

/* ── Feature Content Blocks ── */
.content-block {
    margin: 120px 0;
    text-align: center;
}

.content-block h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.content-block p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
}

/* ── Demo: Hydration Ring ── */
.demo-ring-card {
    max-width: 320px;
    margin: 0 auto 40px;
    background: var(--surface);
    border-radius: 28px;
    padding: 32px 24px 24px;
    border: 1px solid var(--border);
    animation: floatCard 6s ease-in-out infinite;
}

.demo-ring-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
}

.ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.ring-wrap svg {
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}

.ring-wrap .ring-bg   { fill: none; stroke: #E5E7EB; stroke-width: 10; }
.ring-wrap .ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339;
    stroke-dashoffset: 95;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-pct {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.ring-sub {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ring-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.ring-footer .val { font-weight: 700; }
.ring-footer .lbl { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

/* ── Demo: Weather Card ── */
.demo-weather-card {
    max-width: 360px;
    margin: 0 auto 40px;
    background: var(--surface);
    border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    animation: floatCard 7s ease-in-out infinite;
    text-align: left;
}

.weather-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.weather-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.weather-info .temp {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.weather-info .desc {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.weather-divider {
    height: 1px;
    background: var(--border);
    margin: 0 0 20px;
}

.weather-goal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goal-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.goal-val {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
}

.goal-badge {
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

/* ── Demo: Streak Grid ── */
.demo-streak-card {
    max-width: 360px;
    margin: 0 auto 40px;
    background: var(--surface);
    border-radius: 28px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    animation: floatCard 5s ease-in-out infinite;
}

.streak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.streak-title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.streak-count {
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

.streak-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.streak-day {
    aspect-ratio: 1;
    border-radius: 8px;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: transparent;
}

.streak-day.done {
    background: var(--accent);
    color: white;
}

.streak-day.today {
    background: var(--text);
    color: white;
}

.streak-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.streak-lbl {
    text-align: center;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
}

/* ── Footer ── */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover { text-decoration: underline; }

/* ── Content Pages ── */
.content-page {
    padding-top: 60px;
    padding-bottom: 100px;
    max-width: 700px;
}

.content-page h1 {
    font-size: 3rem;
    margin-top: 40px;
    text-align: left;
    letter-spacing: -1.5px;
}

.content-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    text-align: left;
}

.content-page p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 20px;
    text-align: left;
}

.content-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-page li {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.content-page .back-link:hover { color: var(--text); }

.faq-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    text-align: left;
}

.faq-q {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.faq-a {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Demo: Home Card (light) ── */
.demo-home-card {
    max-width: 320px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid #EFEFED;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 28px;
    padding: 24px;
    animation: floatCard 6s ease-in-out infinite;
}

.hc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hc-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: 0.3px;
}

.hc-goal-chip {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6B7280;
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 100px;
}

.hc-ring-wrap {
    position: relative;
    width: 155px;
    height: 155px;
    margin: 0 auto 20px;
}

.hc-ring-wrap svg { width: 100%; height: 100%; }

.hc-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hc-ring-val {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1;
    color: #111;
}

.hc-ring-unit { font-size: 1rem; font-weight: 600; }

.hc-ring-sub {
    font-size: 0.67rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 5px;
}

.hc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #F0F0EE;
}

.hcf-val { font-size: 0.88rem; font-weight: 700; color: #111; }
.hcf-lbl {
    font-size: 0.62rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.hc-log-btn {
    background: #0EA5E9;
    color: #fff;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ── Demo: Weather Card (light) ── */
.demo-wx-card {
    max-width: 360px;
    margin: 0 auto 40px;
    background: #fff;
    border: 1px solid #EFEFED;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    border-radius: 28px;
    padding: 24px;
    text-align: left;
    animation: floatCard 7s ease-in-out infinite;
}

.wx-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.wx-icon { font-size: 2.4rem; line-height: 1; }

.wx-temp {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
}

.wx-desc {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 3px;
}

.wx-sep { height: 1px; background: #F0F0EE; margin-bottom: 20px; }

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

.wx-goal-lbl {
    font-size: 0.67rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.wx-goal-val {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #0EA5E9;
}

.wx-badge {
    background: rgba(14,165,233,0.10);
    color: #0EA5E9;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 100px;
}

/* ── Demo: Forest Card ── */
.demo-forest-card {
    position: relative;
    max-width: 380px;
    height: 280px;
    margin: 0 auto 40px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(to bottom,
        #0D1B0B 0%,
        #142E12 30%,
        #1E4018 60%,
        #2A5220 80%,
        #366028 100%
    );
    animation: floatCard 8s ease-in-out infinite;
}

.forest-ground {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 48px;
    background: linear-gradient(to bottom, #2E5C22, #3A7028);
    z-index: 2;
}

.forest-tree {
    position: absolute;
    z-index: 3;
    bottom: 32px;
}

.ft-1 { left: 1%;  height: 105px; width: auto; }
.ft-2 { left: 16%; height: 78px;  width: auto; }
.ft-3 { left: 33%; height: 140px; width: auto; }
.ft-4 { left: 54%; height: 88px;  width: auto; }
.ft-5 { left: 67%; height: 115px; width: auto; }
.ft-6 { left: 82%; height: 75px;  width: auto; }

.fp {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(122, 174, 96, 0.9);
    box-shadow: 0 0 5px rgba(122, 174, 96, 0.6);
    animation: fp-rise linear infinite;
    z-index: 5;
}

@keyframes fp-rise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 0.9; }
    75%  { opacity: 0.4; }
    100% { transform: translateY(-200px) translateX(18px); opacity: 0; }
}

.forest-meteor {
    position: absolute;
    top: 8%;
    left: -80px;
    width: 90px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
    transform: rotate(-22deg);
    animation: meteor-fly 12s linear infinite;
    z-index: 4;
    opacity: 0;
}

@keyframes meteor-fly {
    0%   { transform: rotate(-22deg) translate(0, 0); opacity: 0; }
    3%   { opacity: 1; }
    18%  { opacity: 0; }
    100% { transform: rotate(-22deg) translate(900px, 450px); opacity: 0; }
}

.forest-hud {
    position: absolute;
    bottom: 14px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.forest-pill {
    background: rgba(8, 18, 8, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
}

/* ── Animations ── */
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    h1 { font-size: 3rem; letter-spacing: -1.5px; }

    .visuals {
        height: 500px;
        margin-bottom: 60px;
        transform: scale(0.62);
        transform-origin: center top;
    }

    .content-block { margin: 80px 0; }
    .content-block h2 { font-size: 2rem; }

    .container { padding: 0 16px; }

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