/* MediaCast One Corporate Site — Main Stylesheet
   Brand: Mcaster1 & CasterClub
   Color system from mc1web + ccweb unified */

:root {
    --mcaster-blue: #0ea5e9;
    --mcaster-cyan: #06b6d4;
    --dnas-green: #22c55e;
    --dnas-accent: #16a34a;
    --professional-blue: #3b82f6;
    --navy-blue: #1e40af;
    --mc1-navy: #0d2342;
    --mc1-gold: #ffc42e;
    --mc1-mint: #1de9b6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-accent: #f1f5f9;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-soft: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-medium: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-large: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-brand: linear-gradient(135deg, var(--mcaster-blue), var(--dnas-green));
    --gradient-hero: linear-gradient(135deg, var(--mc1-navy) 0%, #1565c0 100%);
    --gradient-subtle: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, Menlo, 'Ubuntu Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); line-height: 1.6; color: var(--text-primary); background: var(--bg-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--mcaster-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--dnas-green); }

/* ---- Loading Bar ---- */
.loading-bar { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--gradient-brand); transform: translateX(-100%); transition: transform var(--transition-normal); z-index: 9999; }
.loading-bar.active { transform: translateX(0); }

/* ---- Navbar ---- */
.navbar { background: var(--bg-white); border-bottom: 2px solid var(--mcaster-blue); box-shadow: var(--shadow-medium); position: sticky; top: 0; z-index: 1000; transition: all var(--transition-normal); }
.navbar.scrolled { box-shadow: var(--shadow-large); backdrop-filter: blur(10px); }
.navbar-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; min-height: 70px; }

.navbar-brand { font-size: 1.75rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 0.75rem; transition: transform var(--transition-fast); }
.navbar-brand:hover { transform: scale(1.02); color: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mcaster { color: var(--mcaster-blue); font-size: 1.5rem; font-weight: 800; }
.brand-sub { color: var(--text-secondary); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

.navbar-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.navbar-item { position: relative; }
.navbar-link { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.75rem; text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 0.9rem; border-radius: var(--radius-md); transition: all var(--transition-fast); position: relative; }
.navbar-link:hover, .navbar-link.active { color: var(--mcaster-blue); background: linear-gradient(135deg, var(--bg-light), var(--bg-accent)); transform: translateY(-1px); }
.navbar-link.active::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--dnas-green); border-radius: 1px; }

/* Hamburger */
.navbar-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; border-radius: var(--radius-md); transition: all var(--transition-fast); }
.navbar-toggle:hover { background: var(--bg-light); }
.hamburger-line { width: 24px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all var(--transition-normal); }
.navbar-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.navbar-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 6px 0; box-shadow: var(--shadow-large); z-index: 1000; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--text-primary); text-decoration: none; font-size: 0.88rem; transition: all var(--transition-fast); }
.nav-dropdown-menu a:hover { background: var(--bg-light); color: var(--mcaster-blue); }
.nav-dropdown-menu a i { width: 18px; text-align: center; }
.nav-dropdown .fa-chevron-down { font-size: 0.6rem; transition: transform var(--transition-fast); }
.nav-dropdown:hover .fa-chevron-down { transform: rotate(180deg); }

/* ---- Page Hero ---- */
.page-hero { background: var(--gradient-hero); color: white; padding: 5rem 1.5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 30% 50%, rgba(14,165,233,0.15) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(34,197,94,0.1) 0%, transparent 50%); }
.page-hero .container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.15; }
.page-hero .subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); opacity: 0.9; max-width: 700px; margin: 0 auto 2rem; line-height: 1.6; }
.page-hero .hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.95rem; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.btn-primary { background: var(--gradient-brand); color: white; }
.btn-primary:hover { color: white; }
.btn-secondary { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); color: white; }
.btn-outline { background: transparent; color: var(--mcaster-blue); border: 2px solid var(--mcaster-blue); }
.btn-outline:hover { background: var(--mcaster-blue); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

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

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--text-primary); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 650px; margin-bottom: 3rem; }
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 2rem; transition: all var(--transition-normal); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--mcaster-blue); }
.card-icon { width: 56px; height: 56px; background: var(--gradient-brand); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.card .card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 0.25rem 0.6rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.badge-blue { background: rgba(14,165,233,0.1); color: var(--mcaster-blue); }
.badge-green { background: rgba(34,197,94,0.1); color: var(--dnas-green); }
.badge-gold { background: rgba(255,196,46,0.15); color: #b8860b; }
.badge-purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.badge-gray { background: var(--bg-accent); color: var(--text-secondary); }
.badge-windows { background: rgba(0,120,215,0.1); color: #0078d7; }
.badge-macos { background: rgba(0,0,0,0.06); color: #333; }
.badge-linux { background: rgba(255,165,0,0.1); color: #e65100; }

/* ---- Product Page Layout ---- */
.product-hero { background: var(--gradient-hero); color: white; padding: 4rem 1.5rem 3rem; }
.product-hero .container { max-width: 900px; }
.product-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 0.5rem; }
.product-hero .tagline { font-size: 1.15rem; opacity: 0.9; margin-bottom: 1.5rem; }
.product-hero .badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.product-section { padding: 3.5rem 0; }
.product-section:nth-child(even) { background: var(--bg-light); }

.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.feature-list li i { color: var(--dnas-green); margin-top: 2px; flex-shrink: 0; }

/* ---- Stats Row ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin: 3rem 0; }
.stat-item { text-align: center; padding: 1.5rem; background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.stat-number { font-size: 2.5rem; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* ---- Ecosystem Diagram ---- */
.ecosystem-visual { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.eco-node { padding: 1.25rem; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-lg); text-align: center; transition: all var(--transition-normal); }
.eco-node:hover { border-color: var(--mcaster-blue); transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.eco-node i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.eco-node h4 { font-size: 0.95rem; font-weight: 700; }
.eco-node p { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ---- Press / Brand Colors ---- */
.color-swatches { display: flex; gap: 1rem; flex-wrap: wrap; }
.color-swatch { width: 80px; text-align: center; }
.color-swatch .swatch-box { width: 80px; height: 80px; border-radius: var(--radius-lg); margin-bottom: 0.5rem; border: 1px solid var(--border-light); }
.color-swatch .swatch-name { font-size: 0.75rem; font-weight: 600; }
.color-swatch .swatch-hex { font-size: 0.7rem; color: var(--text-light); font-family: var(--font-mono); }

/* ---- Timeline / Releases ---- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gradient-brand); }
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: 6px; width: 12px; height: 12px; background: var(--mcaster-blue); border-radius: 50%; border: 2px solid var(--bg-white); box-shadow: var(--shadow-soft); z-index: 1; }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-item .timeline-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.timeline-item p { color: var(--text-secondary); }

/* ---- Footer ---- */
.footer { background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-accent) 100%); margin-top: 4rem; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-brand); }
.footer-main { padding: 3rem 0 2rem; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 3rem; align-items: start; }
.footer-brand { max-width: 350px; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo .brand-icon { width: 36px; height: 36px; background: var(--gradient-brand); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.125rem; }
.footer-logo .brand-mcaster { color: var(--mcaster-blue); font-size: 1.375rem; font-weight: 800; }
.footer-logo .brand-sub { color: var(--text-secondary); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 38px; height: 38px; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; transition: all var(--transition-fast); box-shadow: var(--shadow-soft); }
.social-link:hover { background: var(--gradient-brand); color: white; transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: transparent; }
.footer-section { display: flex; flex-direction: column; }
.footer-title { color: var(--text-primary); font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-title i { color: var(--mcaster-blue); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: all var(--transition-fast); padding: 0.2rem 0; font-size: 0.88rem; }
.footer-links a:hover { color: var(--mcaster-blue); padding-left: 0.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-item > i { color: var(--dnas-green); margin-top: 2px; width: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.contact-info a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.contact-info a:hover { color: var(--mcaster-blue); }

.newsletter-signup { background: var(--bg-white); padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--border-light); box-shadow: var(--shadow-soft); }
.newsletter-title { color: var(--text-primary); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.newsletter-description { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0.75rem; }
.newsletter-input-group { display: flex; gap: 0.5rem; }
.newsletter-input { flex: 1; padding: 0.6rem 0.75rem; border: 1px solid var(--border-medium); border-radius: var(--radius-md); font-size: 0.85rem; transition: border-color var(--transition-fast); }
.newsletter-input:focus { outline: none; border-color: var(--mcaster-blue); box-shadow: 0 0 0 3px rgb(14 165 233 / 0.1); }
.newsletter-button { padding: 0.6rem 0.75rem; background: var(--gradient-brand); color: white; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); min-width: 42px; }
.newsletter-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); }

.footer-bottom { background: var(--text-primary); color: white; padding: 1.25rem 0; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-legal { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.copyright { color: #d1d5db; font-size: 0.85rem; }
.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { color: #d1d5db; text-decoration: none; font-size: 0.85rem; transition: color var(--transition-fast); }
.legal-links a:hover { color: var(--mcaster-cyan); }
.footer-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: #9ca3af; }
.version-info { font-weight: 600; color: var(--dnas-green); }

/* ---- Utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---- Notification ---- */
.notification { position: fixed; top: 20px; right: 20px; z-index: 10000; max-width: 400px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-large); border-left: 4px solid var(--mcaster-blue); animation: slideInRight 0.3s ease; }
.notification-success { border-left-color: var(--dnas-green); }
.notification-error { border-left-color: #dc2626; }
.notification-content { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; }
.notification-close { background: none; border: none; color: var(--text-light); cursor: pointer; padding: 0.25rem; margin-left: auto; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .navbar-toggle { display: flex; }
    .navbar-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border-top: 1px solid var(--border-light); box-shadow: var(--shadow-large); flex-direction: column; gap: 0; max-height: 0; overflow: hidden; overflow-y: auto; transition: max-height 0.3s ease; }
    .navbar-menu.active { max-height: 85vh; }
    .navbar-link { width: 100%; padding: 0.85rem 1.5rem; border-radius: 0; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
    .nav-dropdown-menu { position: static !important; display: none; box-shadow: none; border: none; border-radius: 0; padding: 0; min-width: 0; background: var(--bg-accent); }
    .nav-dropdown.open .nav-dropdown-menu { display: block !important; }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open:hover .nav-dropdown-menu { display: block !important; }
    .nav-dropdown-menu a { padding: 0.7rem 1.5rem 0.7rem 2.5rem !important; font-size: 0.88rem !important; border-bottom: 1px solid var(--border-light); }

    .page-hero { padding: 3rem 1rem 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { max-width: none; }
    .footer-bottom-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-legal { flex-direction: column; align-items: center; gap: 1rem; }
    .footer-meta { text-align: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .legal-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .ecosystem-visual { grid-template-columns: repeat(2, 1fr); }
}
