/* ==========================================================================
   Forgepoint Midnight Tech Design System & Styling
   ========================================================================== */

/* Design Tokens / Variables */
:root {
    --bg-main: #070a13;
    --bg-surface: #0f1424;
    --bg-surface-glass: rgba(15, 20, 36, 0.7);
    --bg-card: #13192f;
    --bg-card-glass: rgba(19, 25, 47, 0.6);
    
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.4);
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.4);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(6, 182, 212, 0.15);
    --border-active: rgba(6, 182, 212, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.1);
}

/* Light Theme Variables Overrides */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    --bg-card: #f1f5f9;
    --bg-card-glass: rgba(241, 245, 249, 0.8);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(6, 182, 212, 0.08);
    --border-active: rgba(6, 182, 212, 0.5);
    
    --shadow-glow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Light Theme Component Tweaks */
body.light-theme .btn-secondary {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-primary);
}
body.light-theme .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.06);
}
body.light-theme .tech-nodes-svg line {
    stroke: rgba(15, 23, 42, 0.04);
}
body.light-theme .visualizer-backdrop {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(79, 70, 229, 0.04) 50%, rgba(0,0,0,0) 70%);
}
body.light-theme .filter-btn {
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-secondary);
}
body.light-theme .filter-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}
body.light-theme .filter-btn.active {
    background: var(--cyan);
    color: #ffffff;
    border-color: var(--cyan);
}
body.light-theme .planner-checkbox-card {
    background: #ffffff;
}
body.light-theme .planner-checkbox-card:hover {
    background: #f8fafc;
}
body.light-theme .planner-checkbox-card:has(input[type="checkbox"]:checked) {
    background: rgba(6, 182, 212, 0.04);
}
body.light-theme .form-input, 
body.light-theme .form-textarea {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.15);
}
body.light-theme .readonly-input {
    background-color: #f1f5f9;
}
body.light-theme .hud-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
body.light-theme .timeline-phase {
    background: rgba(15, 23, 42, 0.02);
}
body.light-theme .stack-card {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}
body.light-theme .main-footer {
    background-color: #f1f5f9;
}
body.light-theme .gradient-text-cyan {
    background: linear-gradient(135deg, #0f172a 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

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

.max-width-md {
    max-width: 760px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e294b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection Highlight */
::selection {
    background: var(--cyan);
    color: var(--bg-main);
}

/* Top Branding Glow Bar */
.top-glow-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 50%, var(--green) 100%);
    width: 100%;
    position: relative;
    z-index: 1001;
}

/* Typography Constants */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Helper Utilities */
.highlight-cyan {
    color: var(--cyan);
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-left {
    border-left: 1px solid var(--border-color);
}

.hidden {
    display: none !important;
}

.blinking {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Premium Buttons Styling */
.btn-primary, .btn-secondary, .btn-btn, .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg-main);
    box-shadow: 0 4px 14px var(--cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-pulse {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* Section Common Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-header.align-left {
    text-align: left;
    margin: 0 0 40px 0;
    max-width: 100%;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navbar Styling (Glassmorphism)
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: rgba(7, 10, 19, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    transition: var(--transition-normal);
}

.main-header.scrolled .navbar-container {
    height: 60px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--cyan);
    object-fit: cover;
    box-shadow: 0 0 12px var(--cyan-glow);
    transition: var(--transition-normal);
}

.main-header.scrolled .brand-logo {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--cyan);
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.nav-btn:hover {
    background: var(--cyan);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: none;
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ==========================================================================
   Hero Section Styling
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 120px 0 80px 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.08) 0%, rgba(7, 10, 19, 0) 60%);
    overflow: hidden;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--cyan);
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

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

.stat-item.border-left {
    padding-left: 32px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Technical Graphics */
.hero-visualizer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.visualizer-container {
    position: relative;
    width: 400px;
    height: 400px;
    background: rgba(15, 20, 36, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    padding: 20px;
    box-shadow: var(--shadow-glow);
}

.visualizer-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(79, 70, 229, 0.05) 50%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.tech-nodes-svg {
    position: relative;
    z-index: 2;
}

/* SVG Micro-Animations */
.svg-dash-anim {
    stroke-dasharray: 8;
    animation: svg-dash-movement 30s linear infinite;
}

@keyframes svg-dash-movement {
    to { stroke-dashoffset: -1000; }
}

.svg-ring-pulse {
    transform-origin: 200px 200px;
    animation: svg-scale-pulse 4s ease-in-out infinite alternate;
}

@keyframes svg-scale-pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.9; }
}

.svg-ring-pulse-slow {
    transform-origin: center;
    animation: svg-ring-scale-out 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes svg-ring-scale-out {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.svg-node {
    animation: svg-float 6s ease-in-out infinite;
}

.svg-node:nth-child(2) { animation-delay: -1.5s; }
.svg-node:nth-child(3) { animation-delay: -3s; }
.svg-node:nth-child(4) { animation-delay: -4.5s; }

@keyframes svg-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}

/* Floating HUD items */
.hud-item {
    position: absolute;
    background: rgba(19, 25, 47, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 3;
    pointer-events: none;
}

.hud-code {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
}

.hud-1 {
    top: 40px;
    left: -20px;
    border-left: 2px solid var(--cyan);
}

.hud-2 {
    bottom: 60px;
    right: -20px;
    border-left: 2px solid var(--green);
}

.hud-3 {
    bottom: -15px;
    left: 40px;
    border-left: 2px solid var(--primary);
}

/* ==========================================================================
   Services Section Styling
   ========================================================================== */
.services-section {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Services filter bar styling */
.services-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.filter-btn.active {
    background: var(--cyan);
    color: var(--bg-main);
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* Services Grid and Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.service-card {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.08) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    background: var(--cyan);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.service-icon {
    width: 24px;
    height: 24px;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Interactive Solution Planner Section
   ========================================================================== */
.planner-section {
    padding: 100px 0;
    background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, rgba(7, 10, 19, 0) 50%);
}

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

/* Form structure */
.planner-options-wrapper {
    display: flex;
    flex-direction: column;
}

.planner-footer-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    line-height: 1.6;
}

.planner-footer-note a {
    color: var(--cyan);
    font-weight: 500;
}

.planner-footer-note a:hover {
    text-decoration: underline;
}

.planner-category-group {
    margin-bottom: 32px;
}

.category-group-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Advanced Checkbox Cards Styling */
.planner-checkbox-card {
    display: flex;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
    user-select: none;
}

.planner-checkbox-card:hover {
    border-color: var(--text-muted);
    background: var(--bg-card);
}

/* Hide native checkbox */
.planner-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Checkbox visual indicator */
.checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    margin-right: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-fast);
}

.planner-checkbox-card input[type="checkbox"]:checked ~ .checkbox-indicator {
    background-color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.planner-checkbox-card input[type="checkbox"]:checked ~ .checkbox-indicator::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-main);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Target highlight state when checked */
.planner-checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.03);
}

.checkbox-label-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Dashboard Sticky Blueprint Panel */
.planner-dashboard-wrapper {
    position: sticky;
    top: 108px;
}

.dashboard-sticky-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-glow);
}

.panel-header {
    margin-bottom: 24px;
}

.indicator-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.indicator-dot.blinking {
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.indicator-text {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.panel-title {
    font-size: 1.5rem;
}

/* Dashboard states */
.dashboard-empty-state {
    text-align: center;
    padding: 48px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-icon {
    width: 28px;
    height: 28px;
}

.empty-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 260px;
}

/* Active State Display */
.stats-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.db-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 4px;
    line-height: 1;
}

.db-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blueprint-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

.blueprint-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blueprint-list {
    list-style: none;
}

.blueprint-list-item {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.blueprint-list-item::before {
    content: "▫";
    color: var(--cyan);
    font-weight: bold;
}

.blueprint-list-item .stack-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Timeline visual styling */
.timeline-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-phase {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    gap: 12px;
}

.phase-num {
    font-family: monospace;
    font-weight: bold;
    color: var(--cyan);
}

.phase-body {
    flex-grow: 1;
}

.phase-title {
    color: var(--text-primary);
    font-weight: 500;
}

.phase-target {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   Philosophy & Guarantee Section
   ========================================================================== */
.philosophy-section {
    padding: 100px 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

/* Column visual overlapping cards */
.philosophy-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glowing-orb-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.philosophy-card-stack {
    position: relative;
    width: 340px;
    height: 360px;
    z-index: 1;
}

.stack-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 280px;
}

.card-top {
    top: 0;
    left: 0;
    z-index: 3;
    border-left: 2px solid var(--cyan);
}

.card-middle {
    bottom: 0;
    right: 0;
    z-index: 2;
    border-left: 2px solid var(--primary);
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-header-icon.cyan {
    background: rgba(6, 182, 212, 0.05);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.card-header-icon.blue {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.stack-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.stack-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Bullet list text details */
.philosophy-bullets {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.bullet-item {
    display: flex;
    gap: 24px;
}

.bullet-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
    opacity: 0.8;
}

.bullet-body {
    display: flex;
    flex-direction: column;
}

.bullet-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.bullet-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section & Consultation Form Styling
   ========================================================================== */
.contact-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.04) 0%, rgba(7, 10, 19, 0) 50%);
}

.contact-card-container {
    position: relative;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Input structures */
.contact-form {
    position: relative;
    z-index: 2;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-input, .form-textarea {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-textarea {
    height: 120px;
    resize: vertical;
}

/* Textarea specifically representing pre-filled read-only text */
.readonly-input {
    background-color: rgba(7, 10, 19, 0.4);
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--cyan);
    border-left: 2px solid var(--cyan);
    cursor: default;
    height: 80px;
}

.readonly-input:focus {
    box-shadow: none;
    border-color: var(--cyan);
}

/* Form success details style */
.form-success-state {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    margin-bottom: 24px;
    box-shadow: 0 0 20px var(--green-glow);
}

.success-icon {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.success-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 32px;
}

.animate-scale {
    animation: scale-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scale-up {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    background-color: #05070e;
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

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

.footer-brand-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.5;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    width: fit-content;
}

.active-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.footer-badge-text {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--green);
    letter-spacing: 0.05em;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.footer-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--cyan);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-meta-info {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations (Media Queries)
   ========================================================================== */

/* Up to 1024px Tablets / Notebooks */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visualizer {
        order: -1;
    }
    
    .planner-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .planner-dashboard-wrapper {
        position: static;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .philosophy-visual {
        order: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Up to 768px Mobile Devices */
@media (max-width: 768px) {
    .main-header {
        padding: 4px 0;
    }
    
    .main-header.scrolled {
        padding: 4px 0;
    }
    
    .navbar-container {
        height: 60px;
    }
    
    .main-header.scrolled .navbar-container {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Nav Dropdown */
    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(7, 10, 19, 0.95);
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(16px);
        padding: 32px 24px;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 24px;
        text-align: center;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
        display: flex;
    }
    
    /* Hamburger Transform to X */
    .mobile-menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .contact-card-container {
        padding: 24px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Up to 480px Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item.border-left {
        padding-left: 0;
        border-left: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-card-stack {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .stack-card {
        position: static;
        width: 100%;
    }
}
