/* ============================================================
   EYECRAFT.TECH — Cyberpunk / Techish Theme
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary:    #050a0e;
    --bg-secondary:  #0d1117;
    --bg-card:       #0f1923;
    --bg-card-hover: #162030;

    --neon-cyan:   #00f5ff;
    --neon-purple: #bf5fff;
    --neon-green:  #39ff14;
    --neon-red:    #ff2a6d;
    --neon-orange: #ff9f1c;

    --text-primary:   #e0f4ff;
    --text-secondary: #7ea8be;
    --text-muted:     #4a6a7e;

    --border-glow:  rgba(0, 245, 255, 0.3);
    --border-faint: rgba(0, 245, 255, 0.1);

    --font-display: 'Orbitron', monospace;
    --font-body:    'Rajdhani', sans-serif;
    --font-mono:    'Share Tech Mono', monospace;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-sm: 0 0 6px var(--neon-cyan);
    --glow-md: 0 0 16px var(--neon-cyan), 0 0 32px rgba(0,245,255,0.3);
    --glow-lg: 0 0 24px var(--neon-cyan), 0 0 60px rgba(0,245,255,0.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a { color: var(--neon-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; text-shadow: var(--glow-sm); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: var(--text-primary);
}

p { margin-bottom: 1rem; }

ul { list-style: none; padding: 0; }

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

code, pre {
    font-family: var(--font-mono);
    background: rgba(0,245,255,0.06);
    border: 1px solid var(--border-faint);
    border-radius: 4px;
}
code { padding: 0.1em 0.4em; }
pre { padding: 1rem; overflow-x: auto; }

/* ---------- Ambient FX ---------- */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.12) 2px,
        rgba(0,0,0,0.12) 4px
    );
    opacity: 0.35;
}

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 10, 14, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-faint);
    padding: 0.9rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary) !important;
    text-shadow: none;
    text-decoration: none;
}
.logo:hover { text-shadow: var(--glow-md); }
.logo-bracket { color: var(--neon-purple); }
.logo-dot     { color: var(--neon-cyan); }
.logo-tld     { color: var(--neon-cyan); }
.logo-img { height: 32px; width: auto; filter: drop-shadow(0 0 4px var(--neon-cyan)); }

/* Nav */
.site-nav { display: flex; gap: 0.25rem; }
.nav-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary) !important;
    padding: 0.45rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all var(--transition);
    position: relative;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--neon-cyan);
    transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan) !important;
    border-color: var(--border-faint);
    background: rgba(0,245,255,0.04);
    text-shadow: var(--glow-sm);
}
.nav-link:hover::before,
.nav-link.active::before { left: 15%; right: 15%; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--neon-cyan); border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Main Content ---------- */
.site-main { min-height: calc(100vh - 120px); }

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(0,245,255,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(191,95,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-sm);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-title .accent {
    color: var(--neon-cyan);
    text-shadow: var(--glow-md);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero two-column layout with logo */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}
.hero-logo { display: flex; justify-content: center; align-items: center; }
.hero-logo-img {
    width: 300px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 24px var(--neon-cyan)) drop-shadow(0 0 8px var(--neon-purple));
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
    font-weight: 700;
}
.btn-primary:hover {
    background: #fff;
    color: var(--bg-primary);
    box-shadow: var(--glow-md);
    text-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}
.btn-outline:hover {
    background: rgba(0,245,255,0.08);
    box-shadow: var(--glow-sm);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-faint);
}
.btn-ghost:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* ---------- Section Headers ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { margin-bottom: 3rem; }
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
}
.section-title .accent { color: var(--neon-cyan); }
.section-divider {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    margin: 1rem 0;
    box-shadow: var(--glow-sm);
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: 4px;
    padding: 1.75rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--neon-cyan);
    opacity: 0;
    transition: opacity var(--transition);
    box-shadow: var(--glow-sm);
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--neon-purple);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.card-body {
    color: var(--text-secondary);
    font-size: 0.97rem;
}
.card-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* ---------- Feature App / Highlight ---------- */
.app-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 6px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.app-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(0,245,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}
.app-highlight .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,245,255,0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    padding: 0.25rem 0.7rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}
.app-highlight .badge-dot {
    width: 6px; height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: var(--glow-sm);
}
.app-highlight .badge-launched {
    background: rgba(57,255,20,0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.app-highlight .badge-launched .badge-dot {
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
}
.app-highlight-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}
.app-highlight-desc {
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 1.5rem;
}
.app-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.app-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.app-meta-item::before {
    content: '//';
    color: var(--neon-purple);
}

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.about-profile-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; align-items: start; }

/* ---------- Stats / Terminal ---------- */
.terminal {
    background: #020810;
    border: 1px solid var(--border-faint);
    border-radius: 4px;
    overflow: hidden;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #0a1218;
    border-bottom: 1px solid var(--border-faint);
}
.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}
.terminal-body {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--text-secondary);
}
.terminal-body .prompt { color: var(--neon-green); }
.terminal-body .cmd    { color: var(--text-primary); }
.terminal-body .output { color: var(--text-muted); padding-left: 1.2rem; }
.terminal-body .hl     { color: var(--neon-cyan); }
.cursor {
    display: inline-block;
    width: 8px; height: 1em;
    background: var(--neon-cyan);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

/* ---------- Skills / Tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border-faint);
    border-radius: 2px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.tag:hover, .tag.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0,245,255,0.06);
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.social-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}
.social-item:hover {
    border-color: var(--neon-cyan);
    background: rgba(0,245,255,0.04);
    color: var(--neon-cyan);
    transform: translateX(4px);
    box-shadow: var(--glow-sm);
}
.social-icon {
    width: 20px;
    flex-shrink: 0;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-align: center;
}
.social-label { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; }
.social-handle { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

/* ---------- Contact Info Block ---------- */
.contact-info-block {
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: 4px;
    padding: 2rem;
}
.contact-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-top: 0.75rem;
    word-break: break-all;
}
.contact-logo {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.contact-logo-img {
    width: 240px;
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px var(--neon-cyan));
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border-faint);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(191,95,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Timeline / History ---------- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5rem; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.9rem; top: 0.45rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: var(--glow-sm);
}
.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-purple);
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-faint);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    max-width: 280px;
}
.footer-brand-name { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-brand-name .logo-img { height: 28px; width: auto; }
.footer-links, .footer-contact, .footer-projects { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h4, .footer-contact h4, .footer-projects h4 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.footer-links a, .footer-contact a, .footer-projects a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover, .footer-projects a:hover { color: var(--neon-cyan); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-faint);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-status { display: flex; align-items: center; gap: 0.5rem; }
.status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    animation: pulse 2s infinite;
}

/* ---------- Animations ---------- */
@keyframes blink {
    50% { opacity: 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes glitch {
    0%   { clip-path: inset(40% 0 61% 0); transform: translate(-4px, 0); }
    20%  { clip-path: inset(92% 0 1% 0);  transform: translate(4px, 0); }
    40%  { clip-path: inset(43% 0 1% 0);  transform: translate(0, 0); }
    60%  { clip-path: inset(25% 0 58% 0); transform: translate(2px, 0); }
    80%  { clip-path: inset(54% 0 7% 0);  transform: translate(-2px, 0); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(0, 0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s ease both;
}

/* Glitch text effect */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.glitch::before {
    color: var(--neon-purple);
    animation: glitch 3s infinite linear alternate-reverse;
    opacity: 0.7;
}
.glitch::after {
    color: var(--neon-cyan);
    animation: glitch 2s infinite linear alternate-reverse;
    opacity: 0.5;
}

/* ---------- Utility ---------- */
.text-cyan   { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple); }
.text-green  { color: var(--neon-green); }
.text-muted  { color: var(--text-muted); }
.font-mono   { font-family: var(--font-mono); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px), (pointer: coarse) and (max-width: 960px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(5,10,14,0.98);
        border-bottom: 1px solid var(--border-faint);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.25rem;
    }
    .site-nav.open { display: flex; }
    .site-header { position: relative; }

    .hero { padding: 3.5rem 0 3rem; }
    .section { padding: 3rem 0; }
    .about-profile-grid { grid-template-columns: 1fr; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-logo-img { width: 210px; }
    .page-hero { padding: 1rem 0 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px), (pointer: coarse) and (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .hero { padding: 2rem 0 1.5rem; }
    .page-hero { padding: 1rem 0 1.5rem; }
    .cp-hero-actions .hero-actions { align-items: center; }
    .cp-download-actions { align-items: center; }
}

/* ============================================================
   CRAFT PLANNER PAGE
   ============================================================ */

/* Hero two-column layout */
.cp-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "text logo"
        "actions logo";
    column-gap: 3rem;
    row-gap: 1.5rem;
    align-items: start;
}
.cp-hero-text   { grid-area: text; }
.cp-hero-actions { grid-area: actions; }
.cp-logo-wrap {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}
.cp-logo {
    width: 260px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 20px var(--neon-cyan)) drop-shadow(0 0 8px var(--neon-purple));
}

/* Store button */
.btn-store {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-glow);
    font-weight: 600;
    gap: 0.65rem;
}
.btn-store:hover {
    background: rgba(0,245,255,0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--glow-sm);
}
.store-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Store badge link — image IS the button, no rectangle */
.store-badge-link {
    display: inline-block;
    line-height: 0;
    text-shadow: none;
}
.store-badge-img {
    height: 52px;
    width: auto;
    display: block;
    transition: opacity var(--transition), filter var(--transition);
}
.store-badge-link:hover .store-badge-img {
    opacity: 0.85;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

/* Swiper carousel */
.cp-swiper {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-glow);
    border-radius: 4px;
    background: var(--bg-card);
    --swiper-theme-color: var(--neon-cyan);
    --swiper-navigation-size: 1.1rem;
    --swiper-navigation-top-offset: 50%;
    --swiper-pagination-bullet-inactive-color: var(--neon-cyan);
    --swiper-pagination-bullet-inactive-opacity: 0.3;
    --swiper-pagination-bottom: 0.6rem;
}
.cp-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    max-height: calc(100svh - 8rem);
    object-fit: contain; /* ensures it never exceeds the viewport height */
    display: block;
    border-radius: 3px;
}
.cp-swiper .swiper-button-prev,
.cp-swiper .swiper-button-next {
    background: rgba(5, 10, 14, 0.7);
    border: 1px solid var(--border-glow);
    border-radius: 2px;
    width: 2rem;
    height: 2rem;
    transition: all var(--transition);
}
.cp-swiper .swiper-button-prev:hover,
.cp-swiper .swiper-button-next:hover {
    background: rgba(0, 245, 255, 0.12);
    box-shadow: var(--glow-sm);
}
.cp-swiper .swiper-pagination-bullet {
    border: 1px solid var(--neon-cyan);
    background: transparent;
}
.cp-swiper .swiper-pagination-bullet-active {
    background: var(--neon-cyan);
    box-shadow: var(--glow-sm);
}
.cp-screenshot-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px dashed var(--border-glow);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}
.cp-placeholder-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--neon-cyan);
    text-transform: uppercase;
}
.cp-placeholder-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Video placeholder */
.cp-video-placeholder {
    background: var(--bg-card);
    border: 1px dashed var(--border-glow);
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-video-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
.cp-play-icon {
    color: var(--neon-cyan);
    opacity: 0.7;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}
.cp-video-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin: 0;
}
.cp-video-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* Legal page */
.cp-legal { max-width: 760px; }
.cp-legal-body h3 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
    margin: 1.75rem 0 0.5rem;
}
.cp-legal-body p {
    color: var(--text-secondary);
    font-size: 0.97rem;
}

/* Craft Planner responsive */
@media (max-width: 960px) {
    /* Stack hero actions and equalise widths at this breakpoint */
    .cp-hero-actions .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .cp-hero-actions .hero-actions .store-badge-link,
    .cp-hero-actions .hero-actions .btn {
        width: 200px;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Single-column grid: logo appears between text and actions */
    .cp-hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "logo"
            "actions";
    }
    /* Show logo (overrides display:none from general rule) */
    .cp-logo-wrap { display: flex; justify-content: center; }
    .cp-logo { width: 140px; }

    /* Centre action items */
    .cp-hero-actions .hero-actions { align-items: center; }
    .cp-hero-actions .hero-actions .store-badge-img {
        width: 100%;
        height: auto;
    }

    /* DOWNLOAD section: centre stacked badges */
    .cp-download-actions {
        flex-direction: column;
        align-items: center;
    }
    .cp-download-actions .store-badge-link {
        width: 200px;
        box-sizing: border-box;
    }
    .cp-download-actions .store-badge-img {
        width: 100%;
        height: auto;
    }

    /* Header: hide logo text so it doesn't overlap the hamburger */
    .logo-text, .logo-bracket, .logo-dot, .logo-tld { display: none; }

    .cp-video-placeholder { aspect-ratio: 4 / 3; }
}
