/* ============================================
   MyCirclee — Promotional Site
   Dark theme, warm amber accents, orbital motifs
   ============================================ */

:root {
    --bg:          #0F0D0A;
    --bg-card:     #1A1612;
    --bg-elevated: #231F1A;
    --fg:          #F4EDE4;
    --fg-dim:      #A89B8C;
    --fg-muted:    #6B6054;
    --accent:      #D0845E;
    --accent-glow: #D0845E40;
    --accent-dim:  #B8694D;
    --green:       #5AB87A;
    --purple:      #9B7AD8;
    --orange:      #D4913A;
    --indigo:      #7B8FD4;
    --gray:        #6B6B6B;
    --red:         #D46A6A;
    --radius:      12px;
    --radius-lg:   20px;
    --font-serif:  'Instrument Serif', Georgia, serif;
    --font-sans:   'Inter', -apple-system, system-ui, sans-serif;
    --max-width:   1080px;
    --section-pad: clamp(80px, 12vh, 140px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; position: relative; }

/* ---- Reveal animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .orbital, .orbit-dot, .hero-glow, .scroll-hint-line,
    .ephemeral-progress::after, .presence-dot { animation: none !important; }
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: #0F0D0ACC;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 #ffffff08;
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: -0.01em;
}
.nav-logo img { border-radius: 8px; }
.nav-cta {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-icon {
    margin: 0 auto 32px;
    width: 96px;
    height: 96px;
    animation: float 6s ease-in-out infinite;
}
.hero-icon img { border-radius: 22px; box-shadow: 0 8px 40px #D0845E30; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}
.hero-title-line {
    font-family: var(--font-serif);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--fg);
}
.hero-number {
    font-family: var(--font-sans);
    font-size: clamp(72px, 14vw, 160px);
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
    text-shadow: 0 0 80px var(--accent-glow);
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--fg-dim);
    max-width: 460px;
    margin: 0 auto 36px;
    line-height: 1.5;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-free {
    font-size: 13px;
    color: var(--fg-muted);
    letter-spacing: 0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: scale(1.03); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 8px 40px var(--accent-glow); }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* Hero orbitals */
.hero-orbitals {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.orbital {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #D0845E12;
}
.orbital-1 { width: 300px; height: 300px; animation: spin 60s linear infinite; }
.orbital-2 { width: 480px; height: 480px; animation: spin 90s linear infinite reverse; }
.orbital-3 { width: 660px; height: 660px; animation: spin 120s linear infinite; }
.orbital-4 { width: 840px; height: 840px; animation: spin 150s linear infinite reverse; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Orbiting dots */
.orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
}
.dot-1 { animation: orbit1 60s linear infinite; }
.dot-2 { animation: orbit2 60s linear infinite; }
.dot-3 { animation: orbit3 90s linear infinite; }
.dot-4 { animation: orbit4 90s linear infinite; }
.dot-5 { animation: orbit5 120s linear infinite; }
.dot-6 { animation: orbit6 120s linear infinite; }
.dot-7 { animation: orbit7 150s linear infinite; }
.dot-8 { animation: orbit8 150s linear infinite; }

@keyframes orbit1 { from { transform: rotate(0deg) translateX(150px); } to { transform: rotate(360deg) translateX(150px); } }
@keyframes orbit2 { from { transform: rotate(180deg) translateX(150px); } to { transform: rotate(540deg) translateX(150px); } }
@keyframes orbit3 { from { transform: rotate(60deg) translateX(240px); } to { transform: rotate(420deg) translateX(240px); } }
@keyframes orbit4 { from { transform: rotate(240deg) translateX(240px); } to { transform: rotate(600deg) translateX(240px); } }
@keyframes orbit5 { from { transform: rotate(30deg) translateX(330px); } to { transform: rotate(390deg) translateX(330px); } }
@keyframes orbit6 { from { transform: rotate(150deg) translateX(330px); } to { transform: rotate(510deg) translateX(330px); } }
@keyframes orbit7 { from { transform: rotate(90deg) translateX(420px); } to { transform: rotate(450deg) translateX(420px); } }
@keyframes orbit8 { from { transform: rotate(270deg) translateX(420px); } to { transform: rotate(630deg) translateX(420px); } }

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #D0845E20 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    100% { opacity: 1; transform: scaleY(1); }
}

/* ---- Problem section ---- */
.section-problem { padding: var(--section-pad) 0; }
.big-quote {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 44px);
    font-style: italic;
    line-height: 1.3;
    color: var(--fg);
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}
.problem-text {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--fg-dim);
    max-width: 600px;
    margin: 0 auto 16px;
    text-align: center;
    line-height: 1.6;
}
.problem-text.accent {
    color: var(--accent);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    margin-top: 24px;
}

/* ---- Feature headers ---- */
.feature-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}
.feature-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.15;
    margin-bottom: 12px;
}
.feature-desc {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--fg-dim);
    max-width: 520px;
    line-height: 1.5;
}
.feature-header { text-align: center; margin-bottom: 48px; }
.feature-header .feature-desc { margin: 0 auto; }

/* ---- Presence demo ---- */
.presence-demo { max-width: 420px; margin: 0 auto; }
.presence-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 8px;
    border: 1px solid #ffffff08;
    box-shadow: 0 8px 32px #00000040;
}
.presence-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.presence-person:hover { background: #ffffff06; }
.presence-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    background: hsl(var(--hue), 30%, 20%);
    color: hsl(var(--hue), 60%, 70%);
    flex-shrink: 0;
}
.presence-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.presence-name { font-weight: 500; font-size: 15px; }
.presence-status { font-size: 13px; color: var(--fg-dim); }
.presence-status.free { color: var(--green); }
.presence-status.deep { color: var(--purple); }
.presence-status.out { color: var(--orange); }
.presence-status.still { color: var(--indigo); }
.presence-status.asleep { color: var(--gray); }

.presence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.presence-dot.free { background: var(--green); animation: dot-pulse 2s ease-in-out infinite; }
.presence-dot.deep { background: var(--purple); }
.presence-dot.out { background: var(--orange); animation: dot-pulse 3s ease-in-out infinite 0.5s; }
.presence-dot.still { background: var(--indigo); animation: dot-pulse 4s ease-in-out infinite 1s; }
.presence-dot.asleep { background: var(--gray); opacity: 0.5; }

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.presence-caption {
    text-align: center;
    font-size: 14px;
    color: var(--fg-muted);
    margin-top: 20px;
}

/* ---- Ephemeral cards ---- */
.section-ephemeral { background: var(--bg-card); }
.ephemeral-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}
.ephemeral-card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #ffffff08;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ephemeral-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px #00000040;
}
.ephemeral-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ephemeral-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    padding: 4px 10px;
    border-radius: 100px;
    background: #ffffff08;
}
.ephemeral-type.event { color: var(--accent); background: #D0845E15; }
.ephemeral-type.ask { color: var(--orange); background: #D4913A15; }
.ephemeral-type.poll { color: var(--purple); background: #9B7AD815; }
.ephemeral-timer {
    font-size: 12px;
    color: var(--fg-muted);
    font-variant-numeric: tabular-nums;
}
.ephemeral-body {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--fg);
}
.ephemeral-mood {
    font-size: 12px;
    color: var(--fg-muted);
    font-style: italic;
}
.ephemeral-replies {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}
.ephemeral-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffffff06;
}
.ephemeral-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
    border-radius: 0 3px 3px 0;
    transition: width 1s ease;
}

/* RSVP badges */
.ephemeral-rsvp { display: flex; gap: 8px; }
.rsvp-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
}
.rsvp-badge.going { background: #5AB87A20; color: var(--green); }
.rsvp-badge.maybe { background: #D4913A20; color: var(--orange); }

/* Poll bars */
.poll-options { display: flex; flex-direction: column; gap: 6px; }
.poll-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, #D0845E18 var(--pct), transparent var(--pct));
    transition: background 0.6s ease;
}

/* ---- Coordinate grid ---- */
.coord-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.coord-item {
    text-align: center;
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid #ffffff06;
    transition: transform 0.3s, border-color 0.3s;
}
.coord-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-glow);
}
.coord-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #D0845E12;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.coord-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}
.coord-item p {
    font-size: 14px;
    color: var(--fg-dim);
    line-height: 1.5;
}

/* ---- Widget section ---- */
.widget-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.widget-text .feature-header { text-align: left; margin-bottom: 24px; }
.widget-text .feature-desc { margin: 0 0 24px; }
.widget-badges { display: flex; gap: 8px; }
.widget-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    background: #ffffff08;
    color: var(--fg-dim);
}

.widget-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.widget-mock {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid #ffffff08;
    padding: 16px;
    box-shadow: 0 8px 32px #00000040;
}
.small-widget { width: 170px; }
.medium-widget { width: 340px; }
.widget-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.widget-mock-title { font-size: 11px; color: var(--fg-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.widget-mock-count { font-size: 10px; color: var(--fg-muted); }
.widget-mock-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.wdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.wdot.free { background: var(--green); }
.wdot.deep { background: var(--purple); }
.wdot.out { background: var(--orange); }
.wdot.asleep { background: var(--gray); opacity: 0.4; }

.widget-presence-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}
.widget-status-buttons { display: flex; gap: 6px; }
.widget-status-btn {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff08;
    color: var(--fg-dim);
    transition: background 0.2s, color 0.2s;
}
.widget-status-btn.active {
    background: var(--green);
    color: #fff;
}
.widget-status-btn:hover { background: #ffffff14; }
.widget-status-btn.active:hover { background: var(--green); }

/* ---- Values grid ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.value-item {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid #ffffff06;
    transition: border-color 0.3s;
}
.value-item:hover { border-color: #ffffff12; }
.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #D0845E10;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.value-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }

/* ---- Proof section ---- */
.section-proof {
    background: var(--bg-card);
    text-align: center;
}
.proof-quote {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4.5vw, 52px);
    line-height: 1.2;
    margin-bottom: 16px;
}
.proof-quote em {
    color: var(--accent);
    font-style: italic;
}
.proof-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--fg-dim);
}

/* ---- Download section ---- */
.download-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.download-icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}
.download-icon img { border-radius: 18px; box-shadow: 0 8px 40px #D0845E20; }
.download-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 12px;
}
.download-sub {
    font-size: 18px;
    color: var(--fg-dim);
    margin-bottom: 32px;
}
.download-note {
    font-size: 13px;
    color: var(--fg-muted);
    margin-top: 16px;
}

/* ---- Footer ---- */
.footer {
    padding: 32px 24px;
    border-top: 1px solid #ffffff08;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 16px;
}
.footer-brand img { border-radius: 6px; }
.footer-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--fg-dim);
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--fg-muted);
    margin-top: 8px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1023px) {
    .coord-grid { grid-template-columns: repeat(2, 1fr); }
    .widget-layout { grid-template-columns: 1fr; gap: 40px; }
    .widget-text .feature-header { text-align: center; }
    .widget-text .feature-desc { margin: 0 auto 24px; }
    .widget-badges { justify-content: center; }
    .widget-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 639px) {
    :root { --section-pad: 64px; }
    .ephemeral-grid { grid-template-columns: 1fr; }
    .coord-grid { grid-template-columns: 1fr; gap: 16px; }
    .coord-item { padding: 24px 16px; }
    .values-grid { grid-template-columns: 1fr; }
    .hero-icon { width: 72px; height: 72px; }
    .hero-icon img { width: 72px; height: 72px; }
    .medium-widget { width: 100%; max-width: 340px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .orbital-3, .orbital-4, .dot-5, .dot-6, .dot-7, .dot-8 { display: none; }
}
