/* ============================================
   ADMRL Website - Shared Styles
   Design system aligned with admrl app (Feb 2026)
   ============================================ */

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

/* DESIGN TOKENS */
:root {
    --accent-green: #7FE5A3;
    --accent-green-dark: #4CAF80;
    --accent-purple: #9B8FF5;
    --accent-purple-light: #B8A5E5;
    --accent-cyan: #06b6d4;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --text-primary: #e5e5e5;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --text-muted: #52525b;
    --border-primary: #2a2a2a;
    --border-secondary: #333333;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-accent: linear-gradient(135deg, #7FE5A3 0%, #4CAF80 100%);
    --gradient-logo: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.24);
    --shadow-glow-green: 0 0 0 1px rgba(127, 229, 163, 0.14) inset, 0 8px 18px rgba(76, 175, 128, 0.14);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* BASE */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
/* ACCESSIBILITY */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--accent-green);
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 2000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(127, 229, 163, 0.15);
    z-index: 1000;
    padding: 1.25rem 2rem;
}

.announcement-banner {
    max-width: 1600px;
    margin: 0 auto 0.75rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(127, 229, 163, 0.24);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(127, 229, 163, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
    color: var(--text-primary);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.announcement-banner strong {
    color: var(--accent-green);
    font-weight: 700;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    width: 64px;
    height: 64px;
}
.logo-animated {
    display: block;
}

.logo-static {
    display: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo-text {
    font-size: 3rem;
    font-weight: 400;
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin-left: 2in;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-green);
}

.nav-cta {
    background: var(--gradient-accent);
    color: #0a0a0a;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-left: auto;
}

.nav-cta-mobile {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 229, 163, 0.3);
}

.nav-cta-desktop {
    margin-right: 2in;
}
.mobile-nav {
    display: none;
    border-top: 1px solid rgba(127, 229, 163, 0.12);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav-links a:hover {
    color: var(--accent-green);
}


@media (max-width: 768px) {
    #main-content {
        padding-top: calc(9rem + env(safe-area-inset-top));
    }
    nav {
        padding: 0.75rem 1rem;
    }
    .announcement-banner {
        margin-bottom: 0.4rem;
        padding: 0.3rem 0.55rem;
        font-size: 0.72rem;
        line-height: 1.25;
    }
    .logo-img {
        width: 44px;
        height: 44px;
    }
    .logo-text {
        font-size: 2rem;
    }
    .nav-toggle {
        width: 42px;
        height: 42px;
    }
    .nav-links {
        display: none;
    }

    .nav-cta-desktop {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .mobile-nav {
        display: block;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .mobile-nav.is-open {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(127, 229, 163, 0.12);
        max-height: 480px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-cta-mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-animated {
        display: none;
    }

    .logo-static {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
    .mobile-nav,
    .nav-toggle span {
        transition: none;
    }
}

/* BUTTONS */
.btn-primary {
    background: var(--gradient-accent);
    color: #0a0a0a;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(127, 229, 163, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

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

/* TAGS / BADGES */
.tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tag-green {
    background: rgba(127, 229, 163, 0.1);
    border: 1px solid rgba(127, 229, 163, 0.25);
    color: var(--accent-green);
}

.tag-purple {
    background: rgba(155, 143, 245, 0.1);
    border: 1px solid rgba(155, 143, 245, 0.25);
    color: var(--accent-purple);
}

.tag-cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
}

.card-elevated:hover {
    border-color: rgba(127, 229, 163, 0.3);
    box-shadow: var(--shadow-glow-green);
}

/* SECTION LAYOUTS */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-secondary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* DEMO VIDEO */
.demo-section {
    padding-top: 4rem;
}

.demo-media {
    max-width: 1100px;
    margin: 0 auto;
}

.demo-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.demo-video video,
.demo-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* SCREENSHOT FRAMES */
.screenshot-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.screenshot-frame img {
    width: 100%;
    display: block;
}

.zoomable {
    cursor: zoom-in;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 3000;
}

.lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    overflow: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.lightbox-image.is-zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

/* FEATURE GRIDS */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(127, 229, 163, 0.08);
    border: 1px solid rgba(127, 229, 163, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

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

/* FOOTER */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(127, 229, 163, 0.15);
    padding: 4rem 3rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 400;
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(127, 229, 163, 0.15);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CONTACT MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border-secondary);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(127, 229, 163, 0.1);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

/* HERO HIERARCHY (Option A tweaks) */
.hero-section {
    grid-template-columns: 1.4fr 0.6fr;
}
.hero-header {
    margin-bottom: 1.25rem;
}

.hero-header-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.hero-title {
    font-size: 3.7rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.9rem;
    }

    .hero-header-text {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .hero-header {
        margin-bottom: 1.1rem;
    }

    .hero-header-text {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }
}
