/* ============================================================================
   CastandCurtain Marketing — 2026 Refresh
   ============================================================================ */

:root {
    --bg: #06080d;
    --surface: #10141e;
    --surface-2: #181d2a;
    --border: rgba(255,255,255,0.06);
    --text: #f0f2f5;
    --text-muted: #8892a4;
    --accent: #a78bfa;
    --accent-2: #818cf8;
    --gold: #f59e0b;
    --success: #34d399;
    --radius: 16px;
    --max-width: 1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.75rem; font-size: 0.9375rem; font-weight: 600;
    border-radius: 10px; border: none; cursor: pointer;
    transition: all 0.25s; text-decoration: none; gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff; box-shadow: 0 4px 24px rgba(129,140,248,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 32px rgba(129,140,248,0.45); color: #fff;
}
.btn-outline {
    background: transparent; border: 1.5px solid rgba(255,255,255,0.15); color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent); background: rgba(129,140,248,0.08); color: var(--text);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-ghost { background: none; border: none; color: var(--text-muted); padding: 0.5rem 1rem; }
.btn-ghost:hover { color: var(--text); }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(6,8,13,0.8); backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.35rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { font-size: 0.8125rem; padding: 0.6rem 1.25rem; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
    padding: 9rem 0 5rem;
    position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(129,140,248,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2);
    color: var(--accent); font-size: 0.75rem; font-weight: 600;
    padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.hero-title { font-size: 3.25rem; margin-bottom: 1.25rem; }
.hero-title .gradient {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--text-muted); }

/* Browser preview */
.hero-preview { position: relative; z-index: 1; }
.browser-frame {
    background: var(--surface); border-radius: 14px; overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.4s;
}
.browser-frame:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.browser-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: rgba(0,0,0,0.4);
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar .dots span:nth-child(1) { background: #ff5f57; }
.browser-bar .dots span:nth-child(2) { background: #febc2e; }
.browser-bar .dots span:nth-child(3) { background: #28c840; }
.browser-bar .url-bar {
    flex: 1; margin-left: 12px;
    background: rgba(255,255,255,0.06); border-radius: 6px;
    padding: 4px 12px; font-size: 0.7rem; color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}
/* Hero browser mockup content */
.browser-content-mockup {
    padding: 1rem 1.25rem 1.5rem;
    background: linear-gradient(145deg, #0a1628, #0d0f18);
    min-height: 320px;
}
.mock-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.6rem; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mock-logo { color: #f0f2f5; font-weight: 700; font-size: 0.8rem; }
.mock-nav-links { display: flex; gap: 0.75rem; }
.mock-nav-links span { color: #64748b; font-size: 0.55rem; }
.mock-hero { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.mock-headshot {
    width: 90px; height: 110px; flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a5f, #0f1b2d);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.mock-headshot img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.mock-headshot svg { width: 50px; height: 50px; opacity: 0.4; }
.mock-hero-text { flex: 1; }
.mock-name { color: #f0f2f5; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.15rem; }
.mock-title { color: #a78bfa; font-size: 0.6rem; margin-bottom: 0.5rem; }
.mock-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.mock-tags span {
    background: rgba(255,255,255,0.05); color: #8892a4;
    font-size: 0.48rem; padding: 0.15rem 0.45rem; border-radius: 999px;
}
.mock-tags .tag-accent { background: rgba(167,139,250,0.15); color: #a78bfa; }
.mock-btns { display: flex; gap: 0.35rem; }
.mock-btn-primary {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    color: #fff; font-size: 0.48rem; padding: 0.25rem 0.6rem; border-radius: 5px; font-weight: 600;
}
.mock-btn-outline {
    border: 1px solid rgba(255,255,255,0.15); color: #8892a4;
    font-size: 0.48rem; padding: 0.25rem 0.6rem; border-radius: 5px;
}
.mock-section-label {
    color: #f0f2f5; font-size: 0.6rem; font-weight: 600;
    text-align: center; margin-bottom: 0.5rem;
}
.mock-photos { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.35rem; }
.mock-photos div {
    aspect-ratio: 1; border-radius: 4px; overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #0f1b2d);
}
.mock-photos div img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Logos / Social Proof ---------- */
.social-proof {
    padding: 3rem 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.social-proof-inner { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.social-proof-inner span {
    color: var(--text-muted); font-size: 0.8125rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.5;
}

/* ---------- Section defaults ---------- */
.section { padding: 5rem 0; }
.section-dark { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label {
    display: inline-block; color: var(--accent); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem;
}
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.0625rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- Features ---------- */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    padding: 2rem; border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
    border-color: rgba(129,140,248,0.25);
    transform: translateY(-4px);
}
.feature-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, rgba(129,140,248,0.15), rgba(167,139,250,0.08));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* ---------- Demo section ---------- */
.demo-section { position: relative; overflow: hidden; }
.demo-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(129,140,248,0.06) 0%, transparent 60%);
}
.demo-browser {
    max-width: 780px; margin: 0 auto;
    background: var(--surface); border-radius: 14px; overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
    position: relative;
}
.demo-full-mockup {
    padding: 1.5rem 2rem 2rem;
    background: linear-gradient(145deg, #0a1628, #0d0f18);
}
.dm-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 0.75rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dm-logo { color: #f0f2f5; font-weight: 700; font-size: 1rem; }
.dm-links { display: flex; gap: 1.25rem; }
.dm-links span { color: #64748b; font-size: 0.7rem; cursor: default; }
.dm-hero-area {
    display: flex; gap: 2rem; align-items: flex-start;
    margin-bottom: 2rem;
}
.dm-headshot {
    width: 160px; height: 200px; flex-shrink: 0;
    background: linear-gradient(135deg, #1e3a5f, #0f1b2d);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.dm-headshot img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.dm-headshot svg { width: 80px; height: 80px; opacity: 0.35; }
.dm-hero-info { flex: 1; padding-top: 0.25rem; }
.dm-name { color: #f0f2f5; font-weight: 800; font-size: 1.25rem; margin-bottom: 0.15rem; }
.dm-subtitle { color: #a78bfa; font-size: 0.8rem; margin-bottom: 0.75rem; }
.dm-bio { color: #8892a4; font-size: 0.75rem; line-height: 1.6; margin-bottom: 1rem; }
.dm-hero-btns { display: flex; gap: 0.5rem; }
.dm-btn-primary {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    color: #fff; font-size: 0.65rem; padding: 0.4rem 1rem; border-radius: 6px; font-weight: 600;
}
.dm-btn-ghost {
    border: 1px solid rgba(255,255,255,0.12); color: #8892a4;
    font-size: 0.65rem; padding: 0.4rem 1rem; border-radius: 6px;
}
.dm-section { margin-bottom: 1.5rem; }
.dm-section-title {
    color: #f0f2f5; font-size: 0.8rem; font-weight: 700;
    margin-bottom: 0.75rem; text-align: center;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.dm-photo-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem;
}
.dm-photo {
    aspect-ratio: 1; border-radius: 6px; overflow: hidden;
}
.dm-photo img { width: 100%; height: 100%; object-fit: cover; }
.dm-reels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dm-reel {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 1.5rem; text-align: center;
}
.dm-play {
    width: 36px; height: 36px; margin: 0 auto 0.5rem;
    background: rgba(129,140,248,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.dm-play svg { width: 14px; height: 14px; }
.dm-reel span { color: #8892a4; font-size: 0.7rem; }
.dm-contact { text-align: center; padding: 1rem 0 0.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.dm-contact-row { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.dm-contact-row span { color: #8892a4; font-size: 0.7rem; }
.dm-social-icons { display: flex; justify-content: center; gap: 0.75rem; }
.dm-social-icons span {
    width: 28px; height: 28px; border-radius: 6px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 0.55rem; font-weight: 700;
}

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-num {
    width: 48px; height: 48px; margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800; color: #fff;
}
.step-card h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing-card-single {
    max-width: 480px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 3rem;
    position: relative; overflow: hidden;
}
.pricing-card-single::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--gold));
}
.pricing-header { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.pricing-price { margin-bottom: 0.5rem; }
.price-amount { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { color: var(--text-muted); font-size: 1rem; }
.pricing-tagline { color: var(--text-muted); font-size: 0.9375rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.6rem 0; font-size: 0.9375rem;
}
.pricing-features svg {
    width: 20px; height: 20px; fill: none; stroke: var(--success); stroke-width: 2.5;
    flex-shrink: 0; margin-top: 2px;
}
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.8125rem; margin-top: 2rem; }

/* ---------- CTA ---------- */
.cta {
    padding: 6rem 0; text-align: center;
    position: relative;
}
.cta::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(129,140,248,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cta-title { font-size: 2.5rem; margin-bottom: 1rem; position: relative; }
.cta-subtitle { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 2rem; position: relative; }
.cta-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-muted); position: relative; }

/* ---------- Footer ---------- */
.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-left p { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.25rem; }
.footer-links-row { display: flex; gap: 2rem; }
.footer-links-row a { color: var(--text-muted); font-size: 0.8125rem; }
.footer-links-row a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid, .demo-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-preview { order: -1; }
    .browser-frame { max-width: 520px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-browser { max-width: 620px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 7rem 0 3rem; }
    .hero-title { font-size: 2.25rem; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .pricing-card-single { padding: 2rem; }
    .browser-frame { transform: none; }
    .browser-frame:hover { transform: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links-row { justify-content: center; }
    .social-proof-inner { gap: 1.5rem; }
    .dm-hero-area { flex-direction: row; gap: 1rem; }
    .dm-headshot { width: 100px; height: 130px; }
    .dm-photo-grid { grid-template-columns: repeat(3, 1fr); }
    .dm-links { display: none; }
    .dm-name { font-size: 1rem; }
    .dm-bio { display: none; }
    .demo-full-mockup { padding: 1rem 1rem 1.5rem; }
    .mock-hero { flex-direction: row; }
    .mock-headshot { width: 70px; height: 85px; }
    .mock-nav-links { display: none; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.875rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}
