/*
Theme Name: Eighty Six Four
Theme URI: https://eightysix4.com
Author: Robert Ballou
Description: Custom one-page landing theme for eightysix4.com — the home of the day-in-seconds tracking app. Built to pair with the DayTracker iOS app.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eightysix4
*/

/* ==========================================================================
   Design tokens — matches the iOS app's palette
   ========================================================================== */
:root {
    --bg: #0A0E1A;
    --surface: #10162A;
    --surface-border: rgba(255, 255, 255, 0.08);
    --text: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.55);
    --text-dimmer: rgba(255, 255, 255, 0.35);

    --orange: #F0913C;
    --yellow: #F0C23C;
    --cyan: #00E5FF;
    --red: #FF6B6B;
    --purple: #B388FF;
    --teal: #4FD1C5;

    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.tag {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dimmer);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.brand small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    color: var(--text-dimmer);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.15s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: #14100A;
    box-shadow: 0 8px 24px rgba(240, 145, 60, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--surface-border);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: 96px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(240, 145, 60, 0.14) 0%, rgba(240, 145, 60, 0) 65%);
    pointer-events: none;
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin: 0 auto 28px;
    box-shadow: 0 20px 60px rgba(240, 145, 60, 0.25);
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 20px;
    position: relative;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .tagline {
    font-family: var(--font-mono);
    font-size: clamp(16px, 2.4vw, 22px);
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.hero .sub {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 17px;
    color: var(--text-dim);
    position: relative;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.hero-ctas .btn { padding: 15px 28px; font-size: 15px; }

/* Decorative live-style ring, echoing the widget */
.hero-ring-demo {
    margin: 64px auto 0;
    width: 220px;
    height: 220px;
    position: relative;
}

.hero-ring-demo .track {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--orange) 0deg, var(--yellow) var(--ring-deg, 260deg), rgba(255,255,255,0.06) var(--ring-deg, 260deg));
    mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
    animation: ringDrain 12s linear infinite;
}

@keyframes ringDrain {
    0%   { --ring-deg: 360deg; }
    100% { --ring-deg: 0deg; }
}

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

.hero-ring-demo .center strong {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 800;
}

.hero-ring-demo .center span {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-dimmer);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
section { padding: 88px 0; }

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.section-head .tag { margin-bottom: 14px; }

.section-head h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
}

.section-head p {
    color: var(--text-dim);
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   Features grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent, var(--orange));
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--card-accent, var(--orange)) 16%, transparent);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   Widget spotlight
   ========================================================================== */
.widget-spotlight {
    background: var(--surface);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.spotlight-copy .tag { color: var(--teal); margin-bottom: 14px; }

.spotlight-copy h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 18px;
}

.spotlight-copy p {
    color: var(--text-dim);
    font-size: 16px;
    margin: 0 0 28px;
}

.spotlight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spotlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dim);
}

.spotlight-list li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 6px;
    background: rgba(79, 209, 197, 0.15);
    background-image: linear-gradient(135deg, var(--teal), var(--cyan));
    -webkit-mask: none;
}

.spotlight-visual {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 260px;
    height: 520px;
    border-radius: 44px;
    background: #05070F;
    border: 8px solid #05070F;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-frame .notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #05070F;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-ring {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
}

.phone-ring .track {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--orange) 0deg, var(--yellow) 210deg, rgba(255,255,255,0.06) 210deg);
    mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
}

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

.phone-ring .center strong {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
}

.phone-ring .center span {
    font-size: 9px;
    color: var(--text-dimmer);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ==========================================================================
   Download / CTA
   ========================================================================== */
.cta-section {
    text-align: center;
}

.cta-section .section-head { margin-bottom: 36px; }

.store-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
}

.store-badge strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--surface-border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dimmer);
}

.footer-brand img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dimmer);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
    .spotlight-visual { order: -1; }
}

@media (max-width: 640px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 56px; }
    section { padding: 64px 0; }
    .phone-frame { width: 220px; height: 440px; }
}
