/* =========================================
   DW33PY OS - KINETIC SIGNATURE & HIGH-VISIBILITY
   ========================================= */

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

:root {
    --bg: #0A0A0B;
    --bg-alt: #141417;
    --canvas: #FFFFFF;       /* Pure white for max contrast */
    --border: rgba(255, 255, 255, 0.1);
    --text: #FFFFFF;
    --text-muted: #B0B0B8;   /* Brighter muted text for accessibility */
    
    --c-acid: #CCFF00;       /* Electric Lime */
    --c-rust: #FF4D2E;       /* Terracotta */
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Notched Card Clip-Path */
    --notch-br: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px; /* Increased base font size */
    overflow-x: hidden;
    max-width: 100%;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
section { position: relative; z-index: 2; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; cursor: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }

/* ── CUSTOM CURSOR ── */
.cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--c-acid); border-radius: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s; }
.cursor-ring.hovering { width: 80px; height: 80px; background: rgba(204, 255, 0, 0.1); border-color: transparent; }

/* ── PRELOADER ── */
#loader { position: fixed; inset: 0; z-index: 9997; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity 0.6s ease, visibility 0.6s ease; }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text { font-family: var(--font-display); font-size: 56px; font-weight: 800; color: var(--text); }
.loader-bar { width: 200px; height: 2px; background: var(--border); overflow: hidden; }
.loader-bar div { height: 100%; width: 0%; background: var(--c-acid); transition: width 0.2s; }

/* ── TOP MARQUEE ── */
.top-marquee { position: fixed; top: 0; left: 0; width: 100%; height: 32px; background: var(--c-acid); color: var(--bg); z-index: 200; overflow: hidden; display: flex; align-items: center; }
.marquee-track { display: flex; white-space: nowrap; animation: marquee 20s linear infinite; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.marquee-track span { margin: 0 16px; }
.marquee-track span.dot { color: var(--bg); opacity: 0.5; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── NAVIGATION ── */
.header { position: fixed; top: 32px; left: 0; width: 100%; z-index: 200; transition: background 0.4s, border-color 0.4s, padding 0.4s; padding: 20px 0; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 16px 0; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; color: var(--text); }
.nav-logo span { color: var(--c-acid); }
#sigSvg { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawSig 2s ease forwards; }
@keyframes drawSig { to { stroke-dashoffset: 0; } }

.nav-links { display: flex; gap: 40px; }
.nav-link { font-size: 16px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; position: relative; text-transform: uppercase; }
.nav-link:hover { color: var(--text); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--c-acid); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-cta { padding: 12px 24px; background: var(--c-acid); color: var(--bg); font-size: 14px; font-weight: 700; transition: all 0.3s; text-transform: uppercase; clip-path: var(--notch-br); }
.nav-cta:hover { background: var(--canvas); transform: translateY(-2px); }

.mobile-dock { display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 420px; background: rgba(20, 20, 23, 0.9); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 24px; padding: 12px; z-index: 200; justify-content: space-around; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.dock-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 12px; font-weight: 600; transition: color 0.2s; cursor: pointer; padding: 8px 16px; border-radius: 16px; }
.dock-item svg { width: 24px; height: 24px; }
.dock-item.active, .dock-item:hover { color: var(--canvas); background: rgba(255,255,255,0.05); }
.dock-wa { color: var(--c-acid); }

/* ── GLOBAL ELEMENTS ── */
.section-pad { padding: 160px 40px; max-width: 1400px; margin: 0 auto; position: relative; }
.section-gradient { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.section-head { margin-bottom: 100px; }
.section-head.has-sub { margin-bottom: 80px; }
.sec-label { font-family: var(--font-mono); font-size: 14px; color: var(--c-acid); letter-spacing: 1px; display: block; margin-bottom: 24px; font-weight: 600; }
.sec-title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -1px; }
.italic-text { font-style: italic; color: var(--c-acid); }
.sec-sub { color: var(--text-muted); font-size: 20px; line-height: 1.6; max-width: 600px; margin-top: 24px; }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 40px 80px; max-width: 1400px; margin: 0 auto; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; width: 100%; }
.hero-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 40px; font-weight: 600; }
.status-dot { width: 10px; height: 10px; background: var(--c-acid); border-radius: 0; box-shadow: 0 0 10px var(--c-acid); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-title { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 700; line-height: 0.95; letter-spacing: -2px; margin-bottom: 40px; }
.hero-desc { font-size: 22px; color: var(--text-muted); line-height: 1.6; margin-bottom: 48px; max-width: 500px; }
.hero-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

.btn-primary { padding: 20px 36px; font-weight: 700; font-size: 16px; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; background: var(--c-acid); color: var(--bg); text-transform: uppercase; clip-path: var(--notch-br); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3); }
.btn-ghost { font-size: 16px; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--text); padding-bottom: 4px; transition: color 0.2s, border-color 0.2s; text-transform: uppercase; }
.btn-ghost:hover { color: var(--c-acid); border-color: var(--c-acid); }

/* Hero Terminal */
.terminal-window { background: var(--bg-alt); border: 1px solid var(--border); clip-path: var(--notch-br); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.terminal-header { padding: 16px; background: var(--bg); display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }
.terminal-title { margin-left: auto; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }
.terminal-body { padding: 32px; font-family: var(--font-mono); font-size: 16px; min-height: 320px; color: var(--c-acid); }
.term-line { margin-bottom: 12px; color: var(--text); }
.term-cmd { color: var(--c-acid); }
.term-cursor { display: inline-block; width: 8px; height: 18px; background: var(--c-acid); animation: blink 1s infinite; vertical-align: text-bottom; }
@keyframes blink { 50% { opacity: 0; } }

/* ── CAPABILITIES (Expanding Accordion) ── */
.cap-accordion { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.cap-acc-item { border-bottom: 1px solid var(--border); transition: background 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.cap-acc-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.03), transparent); transform: translateX(-100%); transition: transform 0.6s; }
.cap-acc-item:hover::before { transform: translateX(100%); }
.cap-acc-header { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; }
.cap-acc-left { display: flex; align-items: baseline; gap: 32px; }
.cap-num { font-family: var(--font-mono); font-size: 16px; color: var(--text-muted); }
.cap-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; transition: color 0.3s; }
.cap-acc-item:hover .cap-title { color: var(--c-acid); }
.cap-toggle { font-size: 28px; transition: transform 0.3s; color: var(--c-acid); }
.cap-acc-item.open .cap-toggle { transform: rotate(45deg); }
.cap-acc-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.cap-acc-item.open .cap-acc-content { max-height: 600px; }
.cap-content-inner { padding: 0 0 40px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cap-desc { color: var(--text-muted); font-size: 18px; line-height: 1.7; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.cap-tag { font-family: var(--font-mono); font-size: 14px; color: var(--text); border: 1px solid var(--border); padding: 8px 16px; text-transform: uppercase; }

/* ── DEPLOYMENTS (Live iFrames) ── */
.deployments-section { padding: 160px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.horizontal-head { padding: 0 40px; max-width: 1400px; margin: 0 auto 100px; }
.drag-track { display: flex; gap: 40px; padding: 0 40px; cursor: grab; user-select: none; will-change: transform; }
.drag-track.active { cursor: grabbing; }
.work-card { flex: 0 0 600px; height: 500px; background: var(--bg); border: 1px solid var(--border); clip-path: var(--notch-br); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s; position: relative; }
.work-card:hover { transform: scale(1.01); border-color: var(--c-acid); }
.browser-mockup { display: flex; flex-direction: column; height: 100%; }
.browser-bar { padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.browser-url { flex: 1; background: var(--bg-alt); padding: 8px 16px; border-radius: 6px; font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-viewport { flex: 1; overflow: hidden; position: relative; background: white; }
.browser-viewport iframe { width: 1400px; height: 1000px; border: none; transform: scale(0.42); transform-origin: top left; pointer-events: none; }
.w-overlay { position: absolute; inset: 0; background: transparent; z-index: 10; }

/* Skeleton Loader for iFrame */
.iframe-skeleton { position: absolute; inset: 0; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeletonLoading 1.5s infinite; z-index: 5; }
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── PRICING (Notched 3D Monoliths) ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; perspective: 1000px; }
.pkg-card { background: var(--bg-alt); border: 1px solid var(--border); padding: 48px; display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.3s; position: relative; clip-path: var(--notch-br); transform-style: preserve-3d; will-change: transform; }
.pkg-card:hover { border-color: var(--c-acid); }
.pkg-card.featured { border-color: var(--c-acid); box-shadow: 0 0 40px rgba(204, 255, 0, 0.1); }
.pkg-badge { position: absolute; top: 24px; right: 24px; background: var(--c-acid); color: var(--bg); font-size: 12px; padding: 6px 12px; border-radius: 20px; font-weight: 700; text-transform: uppercase; }
.pkg-name { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-bottom: 12px; }
.pkg-desc { color: var(--text-muted); font-size: 16px; margin-bottom: 32px; min-height: 40px; }
.pkg-price { font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--text); margin-bottom: 32px; }
.pkg-price span { font-size: 16px; color: var(--text-muted); font-family: var(--font-body); }
.pkg-features { list-style: none; margin-bottom: 48px; flex: 1; }
.pkg-features li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 16px; color: var(--text-muted); }
.pkg-features li::before { content: '✓'; color: var(--c-acid); font-weight: 700; }
.pkg-btn { display: block; text-align: center; padding: 18px; background: transparent; border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 16px; transition: 0.3s; clip-path: var(--notch-br); }
.pkg-card.featured .pkg-btn { background: var(--c-acid); color: var(--bg); border-color: transparent; }
.pkg-btn:hover { transform: scale(1.02); }

/* ── CONTACT ── */
.contact-section { padding: 180px 40px; text-align: center; display: flex; justify-content: center; }
.contact-content { max-width: 900px; width: 100%; }
.contact-title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -2px; margin: 24px 0 48px; }
.btn-huge { display: inline-flex; align-items: center; gap: 16px; padding: 28px 56px; background: var(--c-acid); color: var(--bg); font-family: var(--font-body); font-size: 24px; font-weight: 700; transition: all 0.3s; margin-bottom: 80px; clip-path: var(--notch-br); box-shadow: 0 10px 40px rgba(204, 255, 0, 0.2); }
.btn-huge:hover { transform: scale(1.05); box-shadow: 0 15px 50px rgba(204, 255, 0, 0.3); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.contact-item { background: var(--bg-alt); border: 1px solid var(--border); padding: 32px; transition: border-color 0.3s; clip-path: var(--notch-br); }
.contact-item:hover { border-color: var(--c-acid); }
.contact-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }
.contact-val { font-family: var(--font-display); font-size: 20px; font-weight: 600; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; z-index: 2; position: relative; background: var(--bg); padding-bottom: 120px; /* Space for mobile dock */ }
.footer-logo { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.footer-logo span { color: var(--c-acid); }
.footer-left p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.footer-left a { color: var(--c-acid); }
.footer-right { display: flex; gap: 32px; }
.footer-right a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; font-weight: 600; text-transform: uppercase; }
.footer-right a:hover { color: var(--text); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .cap-content-inner { grid-template-columns: 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 600px; }
}

@media (max-width: 768px) {
    body { cursor: auto; font-size: 16px; }
    a, button { cursor: pointer; }
    .cursor-dot, .cursor-ring { display: none; }
    
    .mobile-dock { display: flex; }
    .header { display: none; }
    .top-marquee { height: 28px; font-size: 11px; }
    
    .hero { padding: 80px 24px 40px; min-height: auto; margin-top: 28px; }
    .terminal-body { min-height: 260px; font-size: 14px; padding: 24px; }
    
    .section-pad, .contact-section { padding: 100px 24px; }
    .cap-acc-header { padding: 24px 0; }
    .cap-acc-left { gap: 16px; flex-direction: column; align-items: flex-start; }
    .cap-content-inner { padding: 0 0 24px 0; }
    
    .drag-track { flex-direction: column; padding: 0 24px; gap: 32px; cursor: default; }
    .work-card { flex: 0 0 auto; width: 100%; height: 400px; }
    .browser-viewport iframe { transform: scale(0.35); }
    
    .btn-huge { font-size: 18px; padding: 20px 36px; }
    .horizontal-head { padding: 0 24px; }
    .pkg-card { padding: 32px; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--c-acid); }