/* ============================================
   TERRAS24 Digital Strategy Presentation
   Primary: #506574  |  Accent: #81A774
   ============================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
    --primary: #506574;
    --primary-dark: #3D4F5C;
    --primary-deeper: #2C3D47;
    --accent: #81A774;
    --accent-dark: #6B9260;
    --accent-soft: rgba(129,167,116,.08);
    --orange: #FFBC7D;
    --bg: #F7F8F9;
    --surface: #FFFFFF;
    --border: #D6D6D3;
    --border-light: #EEEEEE;
    --text: #2D3A42;
    --text-secondary: #6B7B85;
    --text-muted: #98A5AD;
    --red: #E74C3C;
    --red-soft: rgba(231,76,60,.08);
    --yellow: #F39C12;
    --yellow-soft: rgba(243,156,18,.08);
    --blue: #3498DB;
    --blue-soft: rgba(52,152,219,.08);
    --radius: 6px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --shadow: 0 2px 12px rgba(80,101,116,.06);
    --shadow-md: 0 4px 24px rgba(80,101,116,.10);
    --shadow-lg: 0 12px 48px rgba(80,101,116,.14);
    --shadow-xl: 0 20px 60px rgba(80,101,116,.18);
    --font-head: 'Red Hat Display', system-ui, sans-serif;
    --font-body: 'Roboto', system-ui, sans-serif;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
button { font-family: inherit }

/* ============================================
   Onboarding
   ============================================ */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44,61,71,.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .5s ease;
}
.onboarding-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.onboarding-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.onboarding-logo { height: 48px; margin-bottom: 16px }
.onboarding-card > h1 {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.onboarding-card > p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.onboarding-steps {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}
.onboarding-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}
.onboarding-step.active .step-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px rgba(129,167,116,.3);
    transform: scale(1.2);
}
.onboarding-step.done .step-dot { background: var(--accent) }
.onboarding-step span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.onboarding-step.active span { color: var(--accent) }

.onboarding-content { min-height: 220px; position: relative }
.ob-slide {
    display: none;
    animation: slideUp .35s ease;
}
.ob-slide.active { display: block }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px) }
    to { opacity: 1; transform: translateY(0) }
}

.ob-icon { color: var(--accent); margin-bottom: 16px }
.ob-slide h2 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.ob-slide p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}
.ob-list {
    list-style: none;
    text-align: left;
    max-width: 380px;
    margin: 0 auto;
}
.ob-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
}
.ob-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .15;
}
.ob-list li::after {
    content: '';
    position: absolute;
    left: 4px; top: 16px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.onboarding-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}
.btn-ob {
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-ob-back {
    background: var(--bg);
    color: var(--text-secondary);
}
.btn-ob-back:hover { background: var(--border-light) }
.btn-ob-next {
    background: var(--accent);
    color: #fff;
}
.btn-ob-next:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(129,167,116,.35);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.main-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08) }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-brand img { height: 36px }
.nav-brand-tag {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.nav-links {
    display: flex;
    gap: 6px;
}
.nav-link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--bg) }
.nav-link.active { color: var(--accent); background: var(--accent-soft) }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-hamburger span {
    width: 22px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 15px }
.btn-accent {
    background: var(--orange);
    color: var(--primary-dark);
    border-color: var(--orange);
    font-weight: 700;
}
.btn-accent:hover {
    background: #F0AD68;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,188,125,.4);
}
.btn-demo {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    width: 100%;
}
.btn-demo:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(80,101,116,.3);
}
.btn-white {
    background: #fff;
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,.3);
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--primary-deeper) 100%);
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(129,167,116,.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,188,125,.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background: rgba(129,167,116,.15);
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent) }
.hero-sub {
    color: rgba(255,255,255,.65);
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-bottom: 40px;
}
.hero-stat { text-align: center }
.hero-stat-num {
    font-family: var(--font-head);
    font-size: 48px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}
.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-top: 6px;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 100px 24px;
}
.section-alt { background: var(--surface) }
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
}
.sub-heading {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 56px 0 24px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

/* ============================================
   Profile Grid
   ============================================ */
.profile-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: start;
}
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.profile-header h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.profile-header span {
    font-size: 13px;
    color: var(--text-muted);
}
.profile-detail {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.profile-detail:last-child { border-bottom: none }
.profile-detail .label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 90px;
}
.profile-detail .value {
    font-size: 14px;
    color: var(--text);
}
.profile-products h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ptag {
    padding: 6px 14px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.ptag-main {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-color: rgba(129,167,116,.2);
    font-weight: 600;
}

/* ============================================
   SWOT Grid
   ============================================ */
.swot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.swot-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
}
.swot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}
.swot-strength { background: var(--accent-soft); border-color: rgba(129,167,116,.15) }
.swot-strength .swot-header { color: var(--accent-dark) }
.swot-weakness { background: var(--red-soft); border-color: rgba(231,76,60,.1) }
.swot-weakness .swot-header { color: var(--red) }
.swot-opportunity { background: var(--blue-soft); border-color: rgba(52,152,219,.1) }
.swot-opportunity .swot-header { color: var(--blue) }
.swot-threat { background: var(--yellow-soft); border-color: rgba(243,156,18,.1) }
.swot-threat .swot-header { color: var(--yellow) }

.swot-card ul {
    list-style: none;
}
.swot-card li {
    padding: 6px 0 6px 20px;
    font-size: 14px;
    color: var(--text);
    position: relative;
    line-height: 1.5;
}
.swot-card li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
}
.swot-strength li::before { background: var(--accent) }
.swot-weakness li::before { background: var(--red) }
.swot-opportunity li::before { background: var(--blue) }
.swot-threat li::before { background: var(--yellow) }

/* ============================================
   Gap Cards
   ============================================ */
.gaps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gap-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}
.gap-severity {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}
.gap-severity.critical { background: var(--red-soft); color: var(--red) }
.gap-severity.high { background: var(--yellow-soft); color: var(--yellow) }
.gap-severity.medium { background: var(--blue-soft); color: var(--blue) }
.gap-card h4 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.gap-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Competitor Table
   ============================================ */
.competitor-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.competitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}
.competitor-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 16px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
}
.competitor-table thead th:first-child { text-align: left }
.competitor-table tbody td {
    padding: 14px 16px;
    text-align: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}
.competitor-table tbody td:first-child { text-align: left; font-weight: 500 }
.competitor-self td { background: rgba(129,167,116,.05) !important }
.competitor-future td { background: rgba(129,167,116,.12) !important }

.check {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.check.yes { background: rgba(129,167,116,.15); color: var(--accent-dark) }
.check.no { background: var(--red-soft); color: #C0392B }
.check.partial { background: var(--yellow-soft); color: #D68910 }

.badge-you, .badge-future {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.badge-you { background: var(--accent-soft); color: var(--accent-dark) }
.badge-future { background: var(--accent); color: #fff }

.insight-box {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(129,167,116,.03));
    border: 1px solid rgba(129,167,116,.2);
    border-radius: var(--radius-lg);
}
.insight-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px }
.insight-box h4 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.insight-box p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

/* ============================================
   Principles
   ============================================ */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
.principle-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
}
.principle-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.principle-num {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    opacity: .3;
    line-height: 1;
    margin-bottom: 12px;
}
.principle-card h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.principle-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Architecture Diagram
   ============================================ */
.arch-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.arch-card h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 32px;
}
.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.arch-layer {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.arch-frontend { background: linear-gradient(135deg, var(--accent-soft), rgba(129,167,116,.15)); border: 1px solid rgba(129,167,116,.2) }
.arch-middleware { background: var(--bg); border: 1px solid var(--border) }
.arch-backend { background: linear-gradient(135deg, rgba(80,101,116,.05), rgba(80,101,116,.1)); border: 1px solid rgba(80,101,116,.15) }
.arch-label {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.arch-frontend .arch-label { color: var(--accent-dark) }
.arch-middleware .arch-label { color: var(--text-muted) }
.arch-backend .arch-label { color: var(--primary) }
.arch-items {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.arch-item {
    padding: 8px 16px;
    background: var(--surface);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}
.arch-item.highlight {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.arch-arrow {
    color: var(--text-muted);
    padding: 4px 0;
}

/* ============================================
   Demo Grid
   ============================================ */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.demo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}
.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.demo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.demo-badge.phase1 { background: var(--accent) }
.demo-icon {
    color: var(--primary);
    margin-bottom: 16px;
}
.demo-card h3 {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.demo-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ============================================
   Demo Modal
   ============================================ */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(44,61,71,.8);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.demo-modal.active { display: flex }
.demo-modal-inner {
    background: var(--surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp .35s ease;
}
.demo-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    z-index: 1;
}
.demo-close:hover { background: var(--border-light); color: var(--text) }
.demo-modal-content { padding: 40px }

/* Chat Demo */
.chat-demo { max-width: 480px; margin: 0 auto }
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: #fff;
}
.chat-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.chat-header-info h4 { font-size: 15px; font-weight: 600 }
.chat-header-info span { font-size: 12px; opacity: .7 }
.chat-body {
    background: var(--bg);
    padding: 20px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideUp .3s ease;
}
.chat-msg.bot {
    background: var(--surface);
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
}
.chat-input:focus { border-color: var(--accent) }
.chat-send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.chat-send:hover { background: var(--accent-dark) }

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.chat-option {
    padding: 6px 14px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-dark);
    cursor: pointer;
    background: var(--surface);
    transition: all var(--transition);
    font-family: var(--font-body);
}
.chat-option:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================
   Roadmap
   ============================================ */
.roadmap-timeline {
    position: relative;
    padding-left: 48px;
}
.roadmap-phase {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    position: relative;
}
.phase-marker {
    position: absolute;
    left: -48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.phase-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 1;
    flex-shrink: 0;
}
.phase-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 4px;
}
.phase-content {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.phase-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.phase-badge.urgent { background: var(--red) }
.phase-content h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.phase-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.phase-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.phase-item {
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.phase-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.phase-priority {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.phase-priority.critical { background: var(--red-soft); color: var(--red) }
.phase-priority.high { background: var(--yellow-soft); color: var(--yellow) }
.phase-priority.innovation { background: var(--blue-soft); color: var(--blue) }
.phase-item h4 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.phase-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section { padding: 80px 24px }
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-xl);
}
.cta-card h2 {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    margin: 20px 0 12px;
}
.cta-card p {
    font-size: 17px;
    opacity: .75;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .principles-grid { grid-template-columns: repeat(2, 1fr) }
    .demos-grid { grid-template-columns: repeat(2, 1fr) }
    .gaps-grid { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md) }
    .nav-links.open { display: flex }
    .nav-hamburger { display: flex }
    .nav-brand-tag { display: none }

    .profile-grid { grid-template-columns: 1fr }
    .swot-grid { grid-template-columns: 1fr }
    .principles-grid { grid-template-columns: 1fr }
    .demos-grid { grid-template-columns: 1fr }
    .gaps-grid { grid-template-columns: 1fr }

    .hero-stats { gap: 24px }
    .hero-stat-num { font-size: 36px }
    .hero-sub { font-size: 16px }

    .roadmap-timeline { padding-left: 32px }

    .footer-inner { flex-direction: column; gap: 4px }

    .onboarding-card { padding: 32px 24px }
    .onboarding-steps { gap: 16px }

    .arch-items { gap: 6px }
    .arch-item { font-size: 11px; padding: 6px 10px }
}

@media (max-width: 480px) {
    .section { padding: 60px 16px }
    .hero { padding: 100px 16px 60px }
    .cta-card { padding: 40px 20px }
    .cta-buttons { flex-direction: column }
    .cta-buttons .btn { width: 100% }
    .hero-stats { flex-direction: column; gap: 16px }
}

/* ============================================
   A11y Demo Styles
   ============================================ */
.a11y-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.a11y-box {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.a11y-box h4 {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.a11y-bad { background: var(--red-soft) }
.a11y-good { background: var(--accent-soft) }
.a11y-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.a11y-bad .a11y-label { color: var(--red) }
.a11y-good .a11y-label { color: var(--accent-dark) }

/* Focus styles for a11y */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 10001;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 8px }

/* ============================================
   Shared Demo Styles
   ============================================ */
.demo-title { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 4px; text-align: center }
.demo-subtitle { color: var(--text-secondary); font-size: 14px; text-align: center; margin-bottom: 24px }
.btn-sm { padding: 8px 18px; font-size: 13px }
.btn-ghost { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border) }
.btn-ghost:hover { background: var(--border-light) }

/* Typing Indicator */
.dot-pulse { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0 }
.dot-pulse span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: dotBounce .6s infinite alternate }
.dot-pulse span:nth-child(2) { animation-delay: .2s }
.dot-pulse span:nth-child(3) { animation-delay: .4s }
@keyframes dotBounce { to { opacity: .3; transform: translateY(-4px) } }
.chat-typing { padding: 10px 16px }
.chat-avatar { font-size: 11px; letter-spacing: -0.5px }

/* ============================================
   AR Demo
   ============================================ */
.ar-scene { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #1a1a2e; margin-bottom: 16px; cursor: crosshair }
.ar-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 50%, #90EE90 65%, #7CCD7C 100%) }
.ar-grass { position: absolute; bottom: 0; left: 0; right: 0; height: 35%; background: linear-gradient(180deg, #7CCD7C, #5B8C5A) }
.ar-house { position: absolute; bottom: 35%; right: 8%; width: 25%; height: 30%; background: linear-gradient(180deg, #8B4513 0%, #8B4513 15%, #D2B48C 15%); border-radius: 2px 2px 0 0 }
.ar-object { position: absolute; bottom: 22%; left: 20%; width: 50%; height: 35%; cursor: grab; z-index: 5; transition: height .3s, bottom .3s }
.ar-fence { position: absolute; inset: 0 }
.ar-post { position: absolute; bottom: 0; width: 4px; height: 100%; border-radius: 1px; transform: translateX(-50%) }
.ar-mesh { position: absolute; bottom: 0; left: 0; right: 0; height: 85%; opacity: .7 }
.ar-terrace-roof { position: absolute; inset: 0; border-radius: 4px; transition: background .3s }
.ar-roof-beam { position: absolute; top: 0; width: 3px; height: 100%; transform: translateX(-50%) }
.ar-roof-post { position: absolute; bottom: -60%; width: 4px; height: 60%; left: 5% }
.ar-ui-top { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; z-index: 10 }
.ar-badge { background: rgba(0,0,0,.5); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px }
.ar-rec { width: 10px; height: 10px; border-radius: 50%; background: #E74C3C; animation: pulse 1.5s infinite }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.ar-measure { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; z-index: 10 }
.ar-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px }
.ar-control-group { display: flex; flex-direction: column; gap: 4px }
.ar-control-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px }
.ar-control-group select, .ar-control-group input[type="range"] { width: 100% }
.ar-control-group select { padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--surface) }
.ar-control-group input[type="range"] { accent-color: var(--accent) }
.ar-control-group span { font-size: 12px; color: var(--text); font-weight: 600 }
.ar-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px }
.ar-stat-item { padding: 12px; background: var(--bg); border-radius: 8px; text-align: center; border: 1px solid var(--border-light) }
.ar-stat-num { font-size: 22px; font-weight: 800; color: var(--accent); font-family: var(--font-head) }
.ar-stat-lbl { font-size: 11px; color: var(--text-muted) }

/* ============================================
   Map Demo
   ============================================ */
.map-container { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); margin-bottom: 12px; cursor: crosshair }
.map-container canvas { display: block; width: 100% }
.map-overlay-info { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.6); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; pointer-events: none }
.map-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px }
.map-result { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--accent-dark) }
.map-calc { background: var(--bg); border-radius: 8px; padding: 16px; border: 1px solid var(--border-light) }
.map-calc-head { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--primary); margin-bottom: 10px }
.mcr { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); padding: 4px 0 }
.mcr span:last-child { font-weight: 600; color: var(--text) }
.mcr-total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 8px }
.mcr-total span { font-weight: 700 !important; color: var(--primary) !important; font-size: 15px }
.mcr-total span:last-child { color: var(--accent) !important; font-size: 17px }
.mcr-free { text-align: center; margin-top: 8px; padding: 8px; background: var(--accent-soft); border-radius: 6px; color: var(--accent-dark); font-weight: 600; font-size: 13px }

/* ============================================
   A11y Demo (new toggle version)
   ============================================ */
.a11y-toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--text-secondary) }
.a11y-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0 }
.a11y-switch input { opacity: 0; width: 0; height: 0 }
.a11y-slider { position: absolute; inset: 0; background: var(--border); border-radius: 14px; cursor: pointer; transition: background .3s }
.a11y-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s; box-shadow: 0 1px 3px rgba(0,0,0,.15) }
.a11y-switch input:checked + .a11y-slider { background: var(--accent) }
.a11y-switch input:checked + .a11y-slider::before { transform: translateX(24px) }
.a11y-preview { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 16px }
.a11y-site { min-height: 280px }
.a11y-site.bad { opacity: .95 }
.skip-demo { display: block; background: var(--accent); color: #fff; padding: 6px 12px; font-size: 12px; font-weight: 600; text-align: center }
.a11y-checklist { display: grid; gap: 6px }
.ck-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 6px }
.ck-pass { background: var(--accent-soft); color: var(--accent-dark) }
.ck-pass::before { content: '+'; font-weight: 700; color: var(--accent); font-size: 16px }
.ck-fail { background: var(--red-soft); color: #C0392B }
.ck-fail::before { content: 'x'; font-weight: 700; color: var(--red); font-size: 14px }

/* ============================================
   Onboarding Demo
   ============================================ */
.ob-demo { max-width: 480px; margin: 0 auto }
.ob-progress { display: flex; gap: 6px; margin-bottom: 24px }
.ob-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background .3s }
.ob-bar.active { background: var(--accent) }
.ob-step-card { background: var(--bg); border-radius: 12px; padding: 32px; text-align: center; border: 1px solid var(--border-light) }
.ob-icon-wrap { color: var(--accent); margin-bottom: 12px }
.ob-step-num { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px }
.ob-step-card h4 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 10px }
.ob-step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px }
.ob-hint { background: var(--surface); border: 2px dashed var(--accent); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--accent-dark); font-weight: 600; margin-bottom: 20px }
.ob-nav { display: flex; justify-content: space-between; align-items: center }

/* ============================================
   WhatsApp Demo
   ============================================ */
.wa-phone { max-width: 400px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid #333 }
.wa-header { background: #075E54; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; flex-shrink: 0 }
.wa-hname { font-size: 15px; font-weight: 600 }
.wa-hstatus { font-size: 11px; opacity: .7 }
.wa-body { background: #E4DCD4; padding: 12px; min-height: 340px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px }
.wa-msg { max-width: 85%; padding: 8px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.05); animation: slideUp .3s ease }
.wa-bot { background: #fff; align-self: flex-start; border-radius: 0 8px 8px 8px }
.wa-user { background: #DCF8C6; align-self: flex-end; border-radius: 8px 0 8px 8px }
.wa-typing { background: #fff; align-self: flex-start; border-radius: 0 8px 8px 8px }
.wa-time { font-size: 10px; color: #999; text-align: right; margin-top: 4px }
.wa-link { color: #075E54; text-decoration: underline }
.wa-buttons { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; align-self: flex-start; max-width: 85% }
.wa-btn { background: #fff; border: 1px solid #075E54; color: #075E54; padding: 8px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; text-align: center; transition: all .2s; font-family: inherit }
.wa-btn:hover { background: #075E54; color: #fff }
.wa-input-wrap { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #F0F0F0 }
.wa-input { flex: 1; padding: 10px 16px; border-radius: 24px; border: none; font-size: 14px; background: #fff }
.wa-mic { width: 36px; height: 36px; border-radius: 50%; background: #075E54; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700 }

/* ============================================
   Terrassendach Konfigurator
   ============================================ */
.td-configurator { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.td-preview { aspect-ratio: 4/3; background: var(--bg); border-radius: 12px; border: 1px solid var(--border-light); overflow: hidden; position: relative }
.td-scene { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 55%, #8FBC8F 55%, #7CCD7C 100%) }
.td-wall { position: absolute; top: 20%; right: 0; width: 100%; height: 35%; background: linear-gradient(180deg, #D2B48C 0%, #C4A882 100%); border-bottom: 3px solid #A0855C }
.td-roof { position: absolute; top: 18%; left: 15%; border-radius: 2px; transition: all .4s; box-shadow: 0 4px 20px rgba(0,0,0,.15) }
.td-beam { position: absolute; top: 0; width: 3px; height: 100%; transform: translateX(-1px) }
.td-post { position: absolute; width: 5px; height: 38%; border-radius: 1px }
.td-floor { position: absolute; bottom: 0; left: 0; right: 0; height: 20%; background: linear-gradient(180deg, #D2B48C, #C4A882) }
.td-led-strip { position: absolute; bottom: 8%; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700); box-shadow: 0 0 10px #FFD700, 0 0 20px #FFA500; border-radius: 1px; animation: ledGlow 2s infinite alternate }
@keyframes ledGlow { from { opacity: .7 } to { opacity: 1 } }
.td-dim-w { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 3px }
.td-dim-d { position: absolute; right: -36px; top: 50%; transform: translateY(-50%) rotate(90deg); font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 3px }
.td-controls { display: flex; flex-direction: column; gap: 14px }
.td-group { display: flex; flex-direction: column; gap: 4px }
.td-group label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px }
.td-group select { padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px }
.td-group input[type="range"] { accent-color: var(--accent) }
.td-group span { font-size: 12px; font-weight: 600; color: var(--text) }
.td-colors { display: flex; gap: 8px }
.td-color { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all .2s }
.td-color.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); transform: scale(1.1) }
.td-extras { display: flex; flex-direction: column; gap: 6px }
.td-extras > label:first-child { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px }
.td-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border-light); transition: background .2s }
.td-check:hover { background: var(--bg) }
.td-check input { accent-color: var(--accent) }
.td-price { grid-column: 1/-1; background: var(--bg); border-radius: 8px; padding: 16px; border: 1px solid var(--border-light) }
.td-price-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); padding: 4px 0 }
.td-price-row span:last-child { font-weight: 600; color: var(--text) }
.td-price-total { display: flex; justify-content: space-between; border-top: 2px solid var(--border); margin-top: 8px; padding-top: 8px; font-size: 16px; font-weight: 700 }
.td-price-total span:first-child { color: var(--primary) }
.td-price-total span:last-child { color: var(--accent); font-size: 20px }
.td-price-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 8px }

/* ============================================
   Smart Home Demo
   ============================================ */
.sh-phone { max-width: 340px; margin: 0 auto; background: #1a1a2e; border-radius: 28px; padding: 8px; box-shadow: var(--shadow-xl); border: 3px solid #333 }
.sh-statusbar { display: flex; justify-content: space-between; padding: 6px 20px; color: rgba(255,255,255,.5); font-size: 11px; font-weight: 600 }
.sh-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 12px; color: #fff }
.sh-header span:first-child { font-family: var(--font-head); font-size: 18px; font-weight: 700 }
.sh-temp { font-size: 24px; font-weight: 800; color: var(--orange) }
.sh-scene { margin: 0 12px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #2C3D47, #506574); position: relative; margin-bottom: 16px }
.sh-roof-visual { position: absolute; top: 15%; left: 10%; right: 10%; height: 50%; background: linear-gradient(180deg, #383E42 0%, #383E42 8%, rgba(173,216,230,0.2) 10%, rgba(173,216,230,0.1) 100%); border: 2px solid #383E42; border-radius: 4px; transition: all .6s }
.sh-roof-visual::after { content: ''; position: absolute; bottom: -35%; left: 5%; width: 4px; height: 35%; background: #383E42 }
.sh-roof-visual::before { content: ''; position: absolute; bottom: -35%; right: 5%; width: 4px; height: 35%; background: #383E42 }
.sh-roof-visual.open { top: 5%; height: 15%; background: linear-gradient(180deg, #383E42 0%, #383E42 30%, transparent 32%); border-bottom-color: transparent }
.sh-roof-visual.led-on { box-shadow: inset 0 -10px 30px rgba(255,215,0,.3), 0 10px 30px rgba(255,215,0,.15) }
.sh-roof-visual.markise-out::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: rgba(200,100,50,.3); border-radius: 0 0 4px 4px }
.sh-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px; margin-bottom: 12px }
.sh-control { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all .2s; border: 1px solid transparent }
.sh-control:hover { background: rgba(255,255,255,.12) }
.sh-control.active { background: rgba(129,167,116,.2); border-color: var(--accent) }
.sh-ctrl-icon { width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 8px; background: rgba(255,255,255,.1) }
.sh-control.active .sh-ctrl-icon { background: var(--accent) }
.sh-ctrl-label { font-size: 11px; color: rgba(255,255,255,.7); font-weight: 600 }
.sh-ctrl-state { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 2px }
.sh-control.active .sh-ctrl-state { color: var(--accent) }
.sh-sensors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px; margin-bottom: 12px }
.sh-sensor { background: rgba(255,255,255,.05); border-radius: 8px; padding: 8px; text-align: center; font-size: 11px; color: rgba(255,255,255,.5); display: flex; flex-direction: column; gap: 2px }
.sh-sensor-icon { font-size: 14px; font-weight: 800 }
.sh-sensor-val { font-weight: 600; color: rgba(255,255,255,.8) }
.sh-voice { margin: 0 12px 12px; padding: 10px; background: rgba(255,255,255,.05); border-radius: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); font-style: italic; border: 1px dashed rgba(255,255,255,.1) }

/* ============================================
   Portfolio Slider
   ============================================ */
.portfolio-slider { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; cursor: ew-resize; box-shadow: var(--shadow-md); margin-bottom: 16px }
.pf-before, .pf-after { position: absolute; inset: 0; background-size: cover; background-position: center }
.pf-after { clip-path: inset(0 0 0 50%) }
.pf-label { position: absolute; top: 12px; padding: 4px 12px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600; border-radius: 4px }
.pf-before .pf-label { left: 12px }
.pf-label-after { right: 12px; left: auto !important }
.pf-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); cursor: ew-resize; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center }
.pf-handle-line { flex: 1; width: 2px; background: rgba(255,255,255,.5) }
.pf-handle-grip { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.pf-handle-grip::before { content: ''; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23506574' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 3L1 8l4 5M11 3l4 5-4 5'/%3E%3C/svg%3E") center/contain no-repeat }
.pf-projects { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap }
.pf-project { padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--surface); color: var(--text-secondary); transition: all .2s; font-family: var(--font-head) }
.pf-project.active { background: var(--accent); color: #fff; border-color: var(--accent) }
.pf-project:hover:not(.active) { border-color: var(--accent); color: var(--accent) }
.pf-details { background: var(--bg); border-radius: 8px; padding: 16px; border: 1px solid var(--border-light) }
.pf-detail-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px }
.pf-details p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px }
.pf-detail-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted) }
.pf-detail-stats strong { color: var(--accent-dark) }

/* ============================================
   Inquiry Form
   ============================================ */
.form-section { background: var(--surface) }
.inquiry-form { max-width: 700px; margin: 0 auto }
.form-group { margin-bottom: 20px }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 6px }
.form-group label small { font-weight: 400; color: var(--text-muted) }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font-body); color: var(--text); background: var(--bg); transition: border-color .2s }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.form-textarea { min-height: 100px; resize: vertical }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.form-checkbox { display: flex; flex-wrap: wrap; gap: 8px }
.form-checkbox label { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border-light); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all .2s }
.form-checkbox label:hover { border-color: var(--accent) }
.form-checkbox input:checked + span { color: var(--accent-dark); font-weight: 600 }
.form-checkbox input { accent-color: var(--accent) }
.form-upload { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; cursor: pointer; transition: all .2s; background: var(--bg) }
.form-upload:hover { border-color: var(--accent); background: var(--accent-soft) }
.form-upload-icon { color: var(--text-muted); margin-bottom: 8px }
.form-upload-text { font-size: 14px; color: var(--text-secondary) }
.form-upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px }
.form-submit { width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 16px; cursor: pointer; transition: all .2s }
.form-submit:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(129,167,116,.35) }
.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px }

/* Requirements cards */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px }
.req-card { background: var(--bg); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border-light) }
.req-card h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 8px }
.req-tag { font-size: 10px; padding: 2px 8px; border-radius: 8px; font-weight: 600 }
.req-tag.must { background: var(--red-soft); color: var(--red) }
.req-tag.nice { background: var(--blue-soft); color: var(--blue) }
.req-list { list-style: none; font-size: 13px; color: var(--text-secondary) }
.req-list li { padding: 3px 0 3px 16px; position: relative }
.req-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent) }

/* Responsive additions */
@media (max-width: 768px) {
    .td-configurator { grid-template-columns: 1fr }
    .ar-controls { grid-template-columns: 1fr }
    .req-grid { grid-template-columns: 1fr }
    .form-row { grid-template-columns: 1fr }
    .sh-controls { grid-template-columns: repeat(2, 1fr) }
}
