/* ========================================================
   Planimetrio CAD - Master Stylesheet
   Modern, Sleek & Intuitive CAD Aesthetic
   ======================================================== */

:root {
    --bg-darker: #070a10;
    --bg-dark: #0b0f19;
    --bg-card: #111726;
    --bg-card-hover: #161e31;
    --border-color: #1e293b;
    --border-bright: #334155;
    
    --accent-cyan: #00b4d8;
    --accent-blue: #0284c7;
    --accent-sky: #38bdf8;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-purple: #6366f1;
    
    --text-white: #f8fafc;
    --text-silver: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', "Cascadia Code", Consolas, monospace;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-silver);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.08) 0%, transparent 60%),
        linear-gradient(to right, rgba(30, 41, 59, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 41, 59, 0.25) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

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

a:hover {
    color: var(--text-white);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================================
   Navigation Header
   ======================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.brand-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-silver);
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.08);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-download {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(0, 180, 216, 0.3);
}

.btn-nav-download:hover {
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.5);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
    padding: 70px 0 60px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-sky);
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--text-white);
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-sky), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 180, 216, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--border-bright);
    color: #fff;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-badges-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================================
   Spotlight Showcase Card (Hero Right Side)
   ======================================================== */
.spotlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: relative;
}

.spotlight-header {
    background: #0d121e;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.spotlight-dots {
    display: flex;
    gap: 6px;
}

.spotlight-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.spotlight-dots span:nth-child(1) { background: #ef4444; }
.spotlight-dots span:nth-child(2) { background: #f59e0b; }
.spotlight-dots span:nth-child(3) { background: #10b981; }

.spotlight-title {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.spotlight-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spotlight-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    background: rgba(13, 18, 30, 0.6);
    border: 1px solid #1c2638;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.spotlight-feature:hover {
    background: rgba(22, 30, 49, 0.9);
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.sf-icon {
    font-size: 22px;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 3px;
}

.sf-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.spotlight-footer {
    background: #0d121e;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* ========================================================
   Quick Stats Ribbon
   ======================================================== */
.stats-ribbon {
    background: rgba(17, 23, 38, 0.7);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-bottom: 70px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================================
   Section Headers
   ======================================================== */
.section {
    padding: 70px 0;
}

.section-alt {
    background: rgba(15, 21, 34, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
}

/* ========================================================
   Feature Cards Grid (Zalety)
   ======================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 180, 216, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    background: rgba(0, 180, 216, 0.12);
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: var(--accent-sky);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tags span {
    font-size: 11px;
    font-family: var(--font-mono);
    background: #1e293b;
    color: var(--accent-sky);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ========================================================
   Workflow Comparison (Ergonomia: Mouse vs Keyboard)
   ======================================================== */
.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1040px;
    margin: 0 auto;
}

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
}

.workflow-card.featured {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.15);
}

.workflow-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
    background: rgba(0, 180, 216, 0.12);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.workflow-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.workflow-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.workflow-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workflow-list li {
    font-size: 14px;
    color: var(--text-silver);
    line-height: 1.5;
}

.workflow-list strong {
    color: var(--text-white);
}

/* ========================================================
   Simple Syntax Teaser Grid
   ======================================================== */
.syntax-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.syntax-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.syntax-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-amber);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.syntax-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.syntax-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.syntax-preview {
    background: #080c14;
    border: 1px solid #1c2638;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.syntax-preview code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #38bdf8;
    font-weight: 600;
}

.syntax-callout {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-md);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sc-content h3 {
    font-size: 19px;
    color: var(--text-white);
    margin-bottom: 4px;
}

.sc-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================================
   Editions Comparison Table
   ======================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 28px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.6px;
}

.pricing-header h3 {
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.pricing-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-silver);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================================
   Download Center & Newsletter
   ======================================================== */
.downloads-grid {
    display: grid;
    gap: 24px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s;
}

.download-card:hover {
    border-color: var(--accent-sky);
}

.download-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.download-card h4 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.download-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-banner {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.12), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-top: 20px;
}

.newsletter-banner h3 {
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 8px;
}

.newsletter-banner p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 10px;
}

.input-custom {
    width: 100%;
    padding: 12px 14px;
    background: #0d121e;
    border: 1px solid #27354a;
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.input-custom:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.news-msg {
    margin-top: 12px;
    font-size: 13px;
    display: none;
}
.news-success { color: #34d399; }
.news-error { color: #f87171; }

/* ========================================================
   Site Footer
   ======================================================== */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-sky);
}

.footer-bottom {
    border-top: 1px solid #141c2e;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ========================================================
   Responsive Breakpoints
   ======================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-grid { grid-template-columns: 1fr; }
    .syntax-teaser-grid { grid-template-columns: 1fr; }
    .syntax-callout { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #0d121e;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    .nav-links.open { display: flex; }
    .mobile-menu-toggle { display: block; }
    .hero-title { font-size: 34px; }
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .newsletter-form { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
