@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-deep: #0a0a0f;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a26;
    --bg-hover: #22222e;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-active: rgba(80, 38, 250, 0.4);
    --accent: #5026fa;
    --accent-hover: #6440ff;
    --accent-glow: rgba(80, 38, 250, 0.15);
    --accent-secondary: #7c5cfc;
    --accent-secondary-glow: rgba(124, 92, 252, 0.15);
    --accent-teal: #2dd4bf;
    --accent-teal-glow: rgba(45, 212, 191, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fw-black { font-weight: 900; }
.italic { font-style: italic; }

/* ─── Progress Bar ─── */
#progress-bar {
    position: fixed;
    top: 0; left: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 9999;
    transition: width 0.3s ease;
    border-radius: 0 2px 2px 0;
}

/* ─── Navbar ─── */
.gd-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.gd-navbar .navbar-brand {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--text-primary) !important;
    text-decoration: none;
}

.gd-navbar .navbar-brand .brand-accent { color: var(--accent); }

.gd-navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.gd-navbar .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.04);
}

.btn-accent {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(80, 38, 250, 0.4);
}

/* ─── Hero ─── */
.gd-hero {
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.gd-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.gd-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-secondary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.gd-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.gd-hero .hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.gd-hero h1 {
    font-weight: 900;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
}

.gd-hero h1 .accent-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gd-hero .hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

/* Hero metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.hero-metric { text-align: center; }

.hero-metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-metric-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.hero-metric-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

/* Hero visual (photo + builder) */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-photo-wrapper {
    position: relative;
    text-align: center;
}

.hero-photo {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.hero-photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
}

.hero-photo-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    white-space: nowrap;
}

.hero-photo-badge i { margin-right: 0.35rem; }

/* ─── Section Titles ─── */
.gd-section-header {
    margin-bottom: 3rem;
}

.gd-section-header .section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.gd-section-header .section-label .label-line {
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.gd-section-header h2 {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* ─── Node Cards ─── */
.node-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: var(--transition);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.node-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.node-card:hover::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.node-card .node-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border-subtle);
}

.node-card .node-icon.icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.node-card .node-icon.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.node-card .node-icon.icon-teal {
    background: var(--accent-teal-glow);
    color: var(--accent-teal);
    border-color: rgba(45, 212, 191, 0.2);
}

.node-card .node-icon.icon-orange {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--border-active);
}

.node-card .node-icon.icon-purple {
    background: var(--accent-secondary-glow);
    color: var(--accent-secondary);
    border-color: rgba(124, 92, 252, 0.2);
}

.node-card .node-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.node-card h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.node-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.node-card .node-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 1.25rem;
    transition: var(--transition);
}

.node-card .node-link:hover {
    gap: 0.6rem;
    color: var(--accent-hover);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--status-color, #22c55e);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--status-color, #22c55e);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ─── Approach Section ─── */
.approach-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.approach-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.approach-card .approach-icon {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.approach-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.approach-card p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── Stack Grid ─── */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.stack-item:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.stack-icon {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-secondary-glow);
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 92, 252, 0.15);
}

.stack-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stack-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Testimonials ─── */
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 2px;
}

.testimonial-card blockquote {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-card .author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.testimonial-card .role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.testimonial-card.featured {
    border-color: rgba(80, 38, 250, 0.2);
    background: linear-gradient(135deg, var(--bg-surface), rgba(80, 38, 250, 0.03));
}

/* ─── Pricing ─── */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: rgba(80, 38, 250, 0.3);
    background: linear-gradient(180deg, rgba(80, 38, 250, 0.06) 0%, var(--bg-surface) 100%);
}

.pricing-card.popular::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.08em;
}

.pricing-card .plan-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.pricing-card .plan-price {
    font-weight: 900;
    font-size: 2.75rem;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.pricing-card .plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: super;
    color: var(--text-secondary);
}

.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    text-align: left;
}

.pricing-card .feature-list li {
    padding: 0.45rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pricing-card .feature-list li .check {
    color: var(--accent);
    font-size: 0.65rem;
}

.btn-pricing {
    width: 100%;
    padding: 0.7rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.btn-pricing:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-pricing.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-pricing.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(80, 38, 250, 0.4);
    transform: translateY(-1px);
}

/* ─── CTA Banner ─── */
.cta-banner {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* ─── Tool Pages ─── */
.tool-page {
    padding: 2rem 0 4rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-header .tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tool-header h2 {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.3px;
    margin: 0;
}

.tool-header h2 span {
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.btn-back:hover {
    color: var(--text-primary);
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.tool-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tool-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.tool-panel .panel-header .panel-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.tool-panel .panel-body { padding: 1.5rem; }

.gd-textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    padding: 1rem;
    resize: vertical;
    transition: var(--transition);
    line-height: 1.6;
}

.gd-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.gd-textarea::placeholder { color: var(--text-muted); }
.gd-textarea.output { color: var(--accent-teal); }

.btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-tool.primary {
    background: var(--accent);
    color: #fff;
}

.btn-tool.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(80, 38, 250, 0.4);
    color: #fff;
}

.btn-tool.secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

.btn-tool.secondary:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--bg-hover);
}

/* ─── Estimator ─── */
.estimator-option { position: relative; }

.estimator-option input[type="radio"],
.estimator-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.estimator-option .option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.estimator-option .option-label:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}

.estimator-option input:checked + .option-label {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text-primary);
}

.estimator-option .option-price {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(80, 38, 250, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.price-result {
    background: var(--bg-deep);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.price-result .price-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-result .price-value {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
    line-height: 1;
}

/* ─── SwiftLink Profile ─── */
.profile-container {
    position: relative;
    display: inline-block;
}

.profile-pic {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-default);
}

.glow-effect {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

.swift-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.swift-link:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
    transform: translateY(-1px);
    color: var(--text-primary);
}

.swift-link .link-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ─── Footer ─── */
.gd-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.gd-footer .footer-brand {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.gd-footer .footer-brand .brand-accent { color: var(--accent); }

.gd-footer .footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gd-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
}

.gd-footer .social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

/* ─── Modal ─── */
.gd-modal .modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}

.gd-modal .modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}

.gd-modal .modal-body { padding: 1.5rem; }

.form-label-gd {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.gd-input {
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
}

.gd-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.gd-input::placeholder { color: var(--text-muted); }

/* ─── Animations ─── */
.animate-in {
    animation: fadeSlideIn 0.4s ease-out forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   App Builder Animation (Hero)
   ═══════════════════════════════════════════ */

.app-builder {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--bg-deep);
    box-shadow:
        var(--shadow-lg),
        0 0 80px rgba(80, 38, 250, 0.06);
}

.ab-chrome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.ab-dots { display: flex; gap: 4px; flex-shrink: 0; }

.ab-dot { width: 7px; height: 7px; border-radius: 50%; }
.ab-dot.red { background: #ff5f57; }
.ab-dot.yellow { background: #febc2e; }
.ab-dot.green { background: #28c840; }

.ab-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-deep);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    color: var(--text-muted);
    overflow: hidden;
}

.ab-url i { font-size: 0.45rem; color: #22c55e; }

.ab-viewport {
    display: flex;
    min-height: 180px;
}

.ab-sidebar {
    width: 25%;
    min-width: 50px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ab-logo-block {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.2rem;
}

.ab-logo-sq {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--accent);
    flex-shrink: 0;
}

.ab-logo-text {
    height: 6px;
    width: 50%;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.3;
}

.ab-nav-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ab-nav-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.35rem;
    border-radius: 5px;
}

.ab-nav-item.active { background: rgba(80, 38, 250, 0.12); }

.ab-nav-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.2;
    flex-shrink: 0;
}

.ab-nav-item.active .ab-nav-icon { background: var(--accent); opacity: 0.8; }

.ab-nav-label {
    height: 5px;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.15;
}

.ab-nav-item.active .ab-nav-label { opacity: 0.4; }

.ab-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ab-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--border-subtle);
}

.ab-search {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.5rem;
    flex: 0 1 45%;
}

.ab-search-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    opacity: 0.3;
    flex-shrink: 0;
}

.ab-search-text {
    height: 4px;
    width: 60%;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.12;
}

.ab-topbar-right { display: flex; align-items: center; gap: 0.4rem; }

.ab-notif {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--text-muted);
    opacity: 0.12;
}

.ab-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    opacity: 0.6;
}

.ab-content {
    flex: 1;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ab-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.ab-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.5rem;
}

.ab-stat-label {
    height: 4px;
    width: 50%;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.15;
    margin-bottom: 0.3rem;
}

.ab-stat-value {
    height: 8px;
    width: 40%;
    border-radius: 3px;
    background: var(--text-primary);
    opacity: 0.2;
    margin-bottom: 0.3rem;
}

.ab-stat-bar {
    height: 3px;
    border-radius: 2px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.ab-stat-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ab-stat-fill.fill-1 { background: var(--accent); }
.ab-stat-fill.fill-2 { background: var(--accent-teal); }
.ab-stat-fill.fill-3 { background: var(--accent-secondary); }

.ab-stat-fill.fill-1.active { width: 72%; }
.ab-stat-fill.fill-2.active { width: 58%; }
.ab-stat-fill.fill-3.active { width: 85%; }

.ab-bottom-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.4rem;
    flex: 1;
    min-height: 0;
}

.ab-chart-card,
.ab-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ab-chart-header,
.ab-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.ab-chart-title,
.ab-table-title {
    height: 5px;
    width: 40%;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.2;
}

.ab-chart-badge {
    height: 10px;
    width: 24px;
    border-radius: var(--radius-full);
    background: rgba(34, 197, 94, 0.15);
}

.ab-chart-area {
    flex: 1;
    padding: 0.35rem;
    display: flex;
    align-items: flex-end;
}

.ab-chart-svg {
    width: 100%;
    height: 100%;
    min-height: 40px;
}

.ab-chart-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawChart 2s ease-out 2.2s forwards;
}

.ab-chart-fill {
    opacity: 0;
    animation: fadeChart 1s ease-out 3s forwards;
}

@keyframes drawChart { to { stroke-dashoffset: 0; } }
@keyframes fadeChart { to { opacity: 1; } }

.ab-table-rows {
    padding: 0.3rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ab-table-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.3rem;
    border-radius: 4px;
}

.ab-row-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ab-row-dot.green { background: #22c55e; }
.ab-row-dot.blue { background: #3b82f6; }
.ab-row-dot.orange { background: var(--accent); }
.ab-row-dot.purple { background: var(--accent-secondary); }

.ab-row-text {
    height: 4px;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.15;
    flex: 1;
}

.ab-row-badge {
    width: 20px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.ab-row-badge.green { background: rgba(34, 197, 94, 0.15); }
.ab-row-badge.blue { background: rgba(59, 130, 246, 0.15); }
.ab-row-badge.orange { background: rgba(80, 38, 250, 0.15); }
.ab-row-badge.purple { background: rgba(124, 92, 252, 0.15); }

.ab-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: cursorMove 8s ease-in-out 1s infinite;
}

.ab-cursor::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid var(--text-primary);
    border-right: 6px solid transparent;
    border-bottom: 10px solid transparent;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

@keyframes cursorMove {
    0%   { top: 30%; left: 40%; opacity: 0; }
    5%   { opacity: 0.9; }
    15%  { top: 38%; left: 25%; }
    25%  { top: 50%; left: 55%; }
    35%  { top: 42%; left: 70%; }
    50%  { top: 65%; left: 45%; }
    65%  { top: 55%; left: 30%; }
    80%  { top: 35%; left: 60%; }
    95%  { top: 30%; left: 40%; opacity: 0.9; }
    100% { top: 30%; left: 40%; opacity: 0; }
}

.ab-anim {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    animation: abBuildIn 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes abBuildIn {
    0% { opacity: 0; transform: translateY(8px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .app-builder { max-width: 100%; }
    .hero-photo { max-width: 300px; }

    .stack-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gd-hero { padding: 3rem 0 2rem; }
    .gd-hero h1 { font-size: 2rem; }
    .tool-header h2 { font-size: 1.2rem; }
    .hero-photo { max-width: 250px; }

    .hero-metrics {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .hero-metric-value { font-size: 1.1rem; }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-viewport { min-height: 160px; }
    .ab-sidebar { width: 22%; padding: 0.4rem; }
    .ab-stats { gap: 0.3rem; }
    .ab-stat-card { padding: 0.35rem; }
    .ab-bottom-row { grid-template-columns: 1fr; }
    .ab-table-card { display: none; }
    .ab-content { padding: 0.4rem; }
    .ab-nav-label { display: none; }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .cta-banner { padding: 2.5rem 1.5rem; }
    .cta-content h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .ab-stats { grid-template-columns: 1fr 1fr; }
    .ab-stat-card:nth-child(3) { grid-column: span 2; }
    .ab-sidebar { width: 18%; min-width: 32px; }

    .hero-metrics {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-metric-divider { display: none; }
}
