:root {
    --cyan: #00E8FC;
    --blue: #3D6FDD;
    --darkblue: #1C2D40;
    --light: #F8FAFC;
    --gray: #64748B;
    --border: #E2E8F0;
    --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    --success: #10B981;
    --warning: #F59E0B;
    --red: #EF4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--darkblue);
    line-height: 1.7;
    background: #fff;
    font-size: 16px;
}

body.panel-open { margin-right: 480px; }

/* ===== GENERATOR PANEL ===== */
.generator-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    height: 100vh;
    background: white;
    border-left: 1px solid var(--border);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.generator-panel.open { transform: translateX(0); }

.panel-header {
    padding: 1.25rem 1.5rem;
    background: var(--darkblue);
    color: white;
    flex-shrink: 0;
}

.panel-header h2 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.panel-header p { font-size: 0.8rem; opacity: 0.7; color: white; margin: 0; }

.panel-tabs {
    display: flex;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.panel-tab {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.panel-tab:hover { color: var(--darkblue); }
.panel-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    background: white;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.panel-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.panel-section h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 2px;
}

.field-group { margin-bottom: 1rem; }
.field-group:last-child { margin-bottom: 0; }

.field-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.field-group input,
.field-group textarea,
.field-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: white;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(61, 111, 221, 0.1);
}

.field-group textarea { min-height: 70px; resize: vertical; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.field-hint {
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* License Cards */
.license-card {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.license-card:last-child { margin-bottom: 0; }

.license-card.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(61, 111, 221, 0.1);
}

.license-card.inactive {
    opacity: 0.5;
}

.license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.license-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-title input[type="text"] {
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    padding: 0;
    width: 140px;
}

.license-title input[type="text"]:focus {
    outline: none;
    border-bottom: 1px solid var(--blue);
}

.license-toggle {
    position: relative;
    width: 40px;
    height: 22px;
}

.license-toggle input { opacity: 0; width: 0; height: 0; }

.license-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 22px;
    transition: 0.3s;
}

.license-toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.license-toggle input:checked + .license-toggle-slider {
    background: var(--gradient);
}

.license-toggle input:checked + .license-toggle-slider::before {
    transform: translateX(18px);
}

.license-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.license-field label {
    font-size: 0.7rem;
    color: var(--gray);
    display: block;
    margin-bottom: 0.25rem;
}

.license-field input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: right;
}

.license-field input:focus {
    outline: none;
    border-color: var(--blue);
}

.license-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    font-size: 0.85rem;
}

.license-subtotal {
    font-weight: 600;
    color: var(--blue);
}

/* Add License Button */
.add-license-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-license-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.add-license-btn svg {
    width: 18px;
    height: 18px;
}

/* Calculated Results */
.calc-result {
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.calc-row.total {
    font-weight: 600;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--darkblue);
    font-size: 0.95rem;
}

.calc-label { color: var(--gray); }
.calc-value { font-weight: 600; }
.calc-value.highlight { color: var(--blue); }
.calc-value.success { color: var(--success); }
.calc-value.warning { color: var(--warning); }

/* Summary Box */
.summary-box {
    background: var(--darkblue);
    color: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 1.5rem;
}

.summary-box h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.summary-total {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.summary-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.summary-breakdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

.summary-row span:first-child { opacity: 0.7; }

/* Toggle */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.toggle-label { font-size: 0.85rem; font-weight: 500; }

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toggle input:checked + .toggle-slider { background: var(--gradient); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Panel Footer */
.panel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

.panel-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.panel-btn svg { width: 18px; height: 18px; }
.panel-btn.primary { background: var(--gradient); color: white; }
.panel-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 232, 252, 0.3);
}
.panel-btn.secondary { background: var(--light); color: var(--darkblue); }
.panel-btn.secondary:hover { background: var(--border); }

/* Panel Toggle Button */
.panel-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 232, 252, 0.4);
    transition: all 0.3s;
}

.panel-toggle:hover { transform: scale(1.1); }

.panel-toggle svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s;
}

body.panel-open .panel-toggle { right: 500px; }
body.panel-open .panel-toggle svg { transform: rotate(180deg); }

/* ===== PRESENTATION STYLES ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

body.panel-open nav { right: 480px; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 32px; width: auto; }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--darkblue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    width: fit-content;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-meta {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.meta-item { display: flex; flex-direction: column; }

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.meta-value { font-weight: 600; }

.section-number {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
p { color: var(--gray); margin-bottom: 1.5rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--light);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(28, 45, 64, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

.feature-list { list-style: none; margin-top: 2rem; }

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child { border-bottom: none; }

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--darkblue);
    fill: none;
    stroke-width: 3;
}

.feature-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.feature-content p { font-size: 0.9rem; margin-bottom: 0; }

/* License Pricing Table */
.license-table {
    margin-top: 3rem;
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
}

.license-table-header {
    background: var(--darkblue);
    color: white;
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.license-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.license-table-row:last-child { border-bottom: none; }

.license-table-row.total-row {
    background: rgba(0, 232, 252, 0.1);
    font-weight: 600;
}

.license-name { font-weight: 500; }
.license-name small { display: block; font-size: 0.8rem; color: var(--gray); font-weight: 400; }

.text-right { text-align: right; }
.text-muted { color: var(--gray); }

/* Cost Table */
.cost-table {
    margin-top: 2rem;
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
}

.cost-table-header {
    background: var(--darkblue);
    color: white;
    padding: 1.25rem 2rem;
}

.cost-table-header h3 { margin: 0; color: white; font-size: 1rem; }

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.cost-row:last-child { border-bottom: none; }
.cost-row.total { background: rgba(0, 232, 252, 0.1); font-weight: 600; }
.cost-row.hidden { display: none; }

.cost-item { flex: 1; }
.cost-item-title { font-weight: 500; }
.cost-item-desc { font-size: 0.85rem; color: var(--gray); }
.cost-value { font-weight: 600; text-align: right; white-space: nowrap; }

.cta-section {
    background: var(--darkblue);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    color: white;
    margin: 4rem auto;
}

.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 232, 252, 0.3);
}

.btn svg { width: 20px; height: 20px; }

footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand { max-width: 300px; }
.footer-brand img { height: 28px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; }

.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--darkblue);
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover { color: var(--blue); }

.footer-legal {
    width: 100%;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--gray);
}

@media (max-width: 1100px) {
    body.panel-open { margin-right: 0; }
    .generator-panel { width: 100%; }
    body.panel-open .panel-toggle { right: 2rem; bottom: auto; top: 1rem; }
    body.panel-open nav { right: 0; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    section { padding: 4rem 1.5rem; }
    .hero-meta { gap: 1.5rem; }
    .cta-section { padding: 3rem 2rem; border-radius: 16px; }
    .license-table-header,
    .license-table-row { grid-template-columns: 1fr; gap: 0.5rem; text-align: left; }
    .license-table-header > div:not(:first-child) { display: none; }
    .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

@media print {
    .generator-panel, .panel-toggle { display: none !important; }
    body.panel-open { margin-right: 0; }
    nav { position: static; }
    .hero { min-height: auto; padding-top: 2rem; }
    section { padding: 2rem; page-break-inside: avoid; }
}
