/* Sterling Echo site styles. Shared by index.html and accessibility.html.
   Colors are chosen to meet WCAG 2.1 AA contrast on the dark backgrounds. */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1a2332;
    --text-silver: #c0c0c0;
    --text-silver-bright: #e8e8e8;
    --text-muted: #94a3b8;
    /* Blue used as a fill behind white text (buttons): 5.2:1 */
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    /* Lighter blue used for text, icons and outlines on the dark
       backgrounds: 7.0:1 on --bg-primary, 5.8:1 on --bg-secondary */
    --accent-blue-text: #60a5fa;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-green: #22c55e;
    --border-color: #334155;
    /* Border for controls, which must be visible against the page: 3.8:1 */
    --border-control: #64748b;
}

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

/* Keep focused elements and in-page link targets clear of the fixed header */
html {
    scroll-padding-top: 6rem;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-silver);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Skip link - hidden until a keyboard user tabs to it */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--text-silver-bright);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Visible keyboard focus on every interactive element */
*:focus-visible {
    outline: 2px solid var(--accent-blue-text);
    outline-offset: 3px;
}

/* <main> receives focus from the skip link; no ring around the whole page */
main:focus {
    outline: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

/* The logo is the wordmark image (images/wordmark-white.png).
   Height is set here; width follows. */
.logo-wordmark {
    height: 26px;
    width: auto;
    display: block;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--accent-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-badge span {
    color: var(--accent-blue-text);
    font-weight: 500;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-silver-bright);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

h1 .highlight {
    background: linear-gradient(135deg, #3B82F6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-blue-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-silver);
    border: 1px solid var(--border-control);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-header {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-silver-bright);
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-blue-text);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-silver-bright);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.screenshots-content {
    max-width: 1400px;
    margin: 0 auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue-text);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Caption sits below the screenshot, on a solid background, so its text
   never overlaps the text inside the image */
.screenshot-label {
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.screenshot-label h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-silver-bright);
    margin-bottom: 0.25rem;
}

.screenshot-label p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Coming Soon Section */
.coming-soon {
    padding: 8rem 2rem;
    text-align: center;
}

.coming-soon-content {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon h2 {
    margin-bottom: 1.5rem;
}

.coming-soon p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.notify-form {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.notify-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-control);
    border-radius: 10px;
    color: var(--text-silver-bright);
    font-size: 1rem;
    font-family: inherit;
}

.notify-form input::placeholder {
    color: var(--text-muted);
}

.notify-form input:focus {
    border-color: var(--accent-blue-text);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-blue-text);
}

.contact-method span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.contact-method a {
    color: var(--text-silver-bright);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-method a:hover {
    color: var(--accent-blue-text);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-logo .logo-wordmark {
    height: 18px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-company {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer links are underlined so they are distinguishable from the
   surrounding text without relying on color */
.footer-text a,
.footer-company a {
    color: var(--text-silver);
    text-decoration: underline;
}

.footer-text a:hover,
.footer-company a:hover {
    color: var(--accent-blue-text);
}

/* Text pages (accessibility.html) */
.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.page h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.page h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.page p {
    margin-bottom: 1rem;
}

.page .page-meta {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.page ul {
    margin: 0 0 1rem 1.5rem;
}

.page li {
    margin-bottom: 0.5rem;
}

.page a {
    color: var(--accent-blue-text);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    /* Smaller wordmark so it fits beside the header button on a phone */
    .logo-wordmark {
        height: 20px;
    }

    .status-badge span:not(.status-dot) {
        display: none;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

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

    .notify-form {
        flex-direction: column;
    }

    .contact-methods {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .page {
        padding: 7rem 1.5rem 3rem;
    }
}

/* Very narrow screens, and pages zoomed to 400%: shrink the wordmark again
   so it keeps clear of the header button */
@media (max-width: 360px) {
    .logo-wordmark {
        height: 16px;
    }
}

/* Respect the visitor's reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .btn-primary:hover,
    .feature-card:hover,
    .screenshot-item:hover {
        transform: none;
    }
}
