/*
Theme Name: Hermes Translator
Theme URI: https://github.com/rchatham/hermes-wp-theme
Author: Reid Chatham
Author URI: https://reidchatham.com
Description: Landing page theme for Hermes Translator — real-time peer-to-peer translation app for iOS and Android.
Version: 1.0.14
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: hermes-translator
Tags: landing-page, one-page, custom-colors, custom-logo, mobile-friendly
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    --color-primary:       #F87E17;
    --color-primary-dark:  #D96A0C;
    --color-accent:        #FFE0BF;
    --color-bg:            #F87E17;
    --color-bg-card:       #FFF9F4;
    --color-bg-section:    #FFE8D4;
    --color-text:          #452515;
    --color-text-muted:    #6E3C1E;
    --color-border:        rgba(90, 44, 16, 0.10);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   24px;
    --radius-pill: 999px;

    --shadow-card: 0 18px 50px rgba(108, 53, 18, 0.14);
    --shadow-glow: 0 0 80px rgba(255, 197, 134, 0.30);

    --max-width: 1100px;
    --section-padding: 96px 24px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 225, 194, 0.30), transparent 20%),
        radial-gradient(circle at 88% 22%, rgba(255, 208, 158, 0.22), transparent 18%),
        radial-gradient(circle at 80% 78%, rgba(255, 193, 128, 0.18), transparent 18%),
        linear-gradient(180deg, #fa8a22 0%, #f87e17 42%, #ef7410 100%);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-padding); }
.section--alt {
    background: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.how-it-works,
.privacy {
    background: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

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

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff2e3;
    margin-bottom: 16px;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 243, 233, 0.86);
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: #fff7f0;
    color: var(--color-primary-dark);
    box-shadow: 0 12px 28px rgba(111, 52, 17, 0.18);
}
.btn--primary:hover {
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(111, 52, 17, 0.24);
    color: var(--color-primary-dark);
}

.btn--outline {
    background: rgba(255, 247, 240, 0.22);
    color: var(--color-text);
    border: 1.5px solid rgba(255, 247, 240, 0.35);
}
.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--light {
    background: rgba(255, 247, 240, 0.16);
    color: #fff8f2;
    border: 1.5px solid rgba(255, 247, 240, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn--light:hover {
    background: rgba(255, 247, 240, 0.24);
    border-color: rgba(255, 255, 255, 0.50);
    color: #ffffff;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(167, 77, 10, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 247, 240, 0.18);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff8f2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-shrink: 1;
    line-height: 1.1;
}
.site-logo:hover { color: #ffffff; }

.site-logo__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: 0 6px 18px rgba(248, 126, 23, 0.35);
    object-fit: cover;
}

div.site-logo__icon {
    background: url("assets/images/app-icon.png") center/cover no-repeat;
    color: transparent;
    overflow: hidden;
}

.site-nav a[href="#open-source"],
.site-nav .btn--outline,
.site-footer__links {
    display: none;
}

.site-nav { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 248, 242, 0.82);
    transition: color 0.15s;
}
.site-nav a:hover { color: #ffffff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 136px 24px 96px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(6px);
}

.hero::before {
    width: 180px;
    height: 180px;
    top: 120px;
    left: max(24px, calc(50% - 620px));
    background: rgba(255, 226, 198, 0.16);
}

.hero::after {
    width: 120px;
    height: 120px;
    right: max(30px, calc(50% - 560px));
    bottom: 140px;
    background: rgba(255, 239, 224, 0.14);
}

.hero__bg-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 54% at 50% 0%, rgba(255, 233, 210, 0.34) 0%, transparent 72%),
        radial-gradient(circle at 18% 22%, rgba(255, 205, 155, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(255, 192, 132, 0.18) 0%, transparent 24%),
        radial-gradient(circle at 50% 55%, rgba(255, 248, 242, 0.10) 0%, transparent 22%);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 247, 240, 0.22);
    border: 1px solid rgba(255, 247, 240, 0.30);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff7f0;
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    margin-bottom: 20px;
    max-width: 920px;
    color: #fffaf6;
    -webkit-text-fill-color: initial;
    text-shadow: 0 10px 30px rgba(124, 52, 5, 0.16);
    line-height: 1.05;
}

.hero__sub {
    font-size: clamp(1.08rem, 2.4vw, 1.34rem);
    color: rgba(255, 245, 237, 0.94);
    max-width: 760px;
    margin: 0 auto 34px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__actions .btn {
    min-width: 220px;
    justify-content: center;
}

.hero__visual {
    position: relative;
    width: min(100%, 500px);
    margin: 12px auto 44px;
}

.hero__mascot {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 34px 90px rgba(113, 44, 5, 0.32);
    border: 1px solid rgba(255, 244, 234, 0.34);
    transform: rotate(-3deg);
}

.hero__app-icon {
    position: absolute;
    right: -18px;
    bottom: -28px;
    width: 122px;
    border-radius: 28px;
    box-shadow: 0 28px 54px rgba(110, 42, 6, 0.32);
    border: 5px solid rgba(255, 251, 247, 0.96);
    transform: rotate(8deg);
}

.hero__platforms {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 245, 237, 0.86);
    font-size: 0.85rem;
}

.hero__platforms-badges {
    display: flex;
    gap: 8px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 247, 240, 0.84);
    border: 1px solid rgba(255, 247, 240, 0.42);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================================
   How It Works
   ============================================================ */
.how-it-works { padding: var(--section-padding); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.how-it-works .section-header,
.privacy__text,
.cta .container {
    position: relative;
    z-index: 1;
}

.section-header h2 {
    margin-bottom: 16px;
    color: #fff8f2;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    position: relative;
}

.step {
    background: rgba(255, 247, 240, 0.12);
    border: 1px solid rgba(255, 240, 226, 0.18);
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.step:hover {
    border-color: rgba(255, 244, 234, 0.34);
    background: rgba(255, 247, 240, 0.18);
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 22px 44px rgba(139, 55, 5, 0.14);
}

.step__number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 20px;
}

.step h3 { margin-bottom: 10px; font-size: 1.05rem; color: #fff8f2; }
.step p { color: rgba(255, 242, 231, 0.82); font-size: 0.9rem; }

/* ============================================================
   Features
   ============================================================ */
.features { padding: var(--section-padding); background: transparent; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 247, 240, 0.12);
    border: 1px solid rgba(255, 240, 226, 0.18);
    border-radius: 30px;
    padding: 32px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
    border-color: rgba(255, 244, 234, 0.34);
    background: rgba(255, 247, 240, 0.18);
    box-shadow: 0 22px 44px rgba(139, 55, 5, 0.14);
    transform: translateY(-6px);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff5eb 0%, #ffe2c6 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.feature-card h3 { margin-bottom: 10px; color: #fff8f2; }
.feature-card p { color: rgba(255, 242, 231, 0.82); font-size: 0.92rem; line-height: 1.7; }

/* ============================================================
   Privacy Section
   ============================================================ */
.privacy { padding: var(--section-padding); }

.privacy__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.privacy__text h2 { margin-bottom: 20px; color: #fff8f2; }
.privacy__text p { color: rgba(255, 242, 231, 0.82); margin-bottom: 16px; }

.privacy__checks { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.privacy__checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 242, 231, 0.84);
    font-size: 0.93rem;
}
.privacy__checks li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F87E17'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-top: 2px;
}

.privacy__visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.privacy__device-card {
    background: rgba(255, 247, 240, 0.12);
    border: 1px solid rgba(255, 240, 226, 0.18);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy__device-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    background: rgba(248, 126, 23, 0.18);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy__device-info h4 { font-size: 0.95rem; margin-bottom: 4px; color: #fff8f2; }
.privacy__device-info p { font-size: 0.82rem; color: rgba(255, 242, 231, 0.82); }

.privacy__connection {
    text-align: center;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy__connection::before,
.privacy__connection::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent));
}
.privacy__connection::before { background: linear-gradient(90deg, transparent, var(--color-accent)); }
.privacy__connection::after  { background: linear-gradient(90deg, var(--color-accent), transparent); }

/* ============================================================
   CTA Section
   ============================================================ */
.cta {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(248, 126, 23, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 { margin-bottom: 16px; color: #fff8f2; }
.cta .lead { margin-bottom: 40px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 247, 240, 0.22);
    padding: 48px 24px;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__copy { font-size: 0.85rem; color: rgba(255, 245, 237, 0.78); }

.site-footer__links {
    display: flex;
    gap: 24px;
}
.site-footer__links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--color-text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    :root { --section-padding: 64px 20px; }

    .site-header__inner { height: auto; min-height: 64px; padding-top: 14px; padding-bottom: 14px; }
    .site-nav { display: none; }
    .site-logo { font-size: 0.96rem; max-width: calc(100vw - 40px); }

    .privacy__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid { grid-template-columns: 1fr; }

    .hero__actions { flex-direction: column; align-items: center; }
    .hero__actions .btn { width: 100%; max-width: 320px; }
    .hero__visual { width: min(100%, 320px); margin-bottom: 40px; }
    .hero__mascot { transform: rotate(-2deg); }
    .hero__app-icon { width: 92px; right: -8px; bottom: -16px; }

    .site-footer__inner { flex-direction: column; text-align: center; }
}
