/* VK Apps - Static Website Styles */
/* Fonts embedded as system fonts fallback */

:root {
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --bg-surface-highlight: #1e293b;
    --primary: #f97316;
    --primary-hover: #ea580c;
    --secondary: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: #1e293b;
    --success: #22c55e;
    --error: #ef4444;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

/* Keyboard access and native anchors work even when JavaScript is unavailable. */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: var(--bg-main);
    color: white;
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
[hidden] { display: none !important; }
.btn-primary, .lang-btn.active { color: #020617; }
.form-privacy, .partner-note { color: var(--text-muted); font-size: 0.875rem; }
.form-privacy { margin: 1rem 0; }
.form-privacy a { text-decoration: underline; }
.partner-note { max-width: 34rem; }
.partner-text { display: inline-block; padding: 0.5rem 0.75rem; color: var(--text-main); border: 1px solid var(--border); border-radius: 0.5rem; }
.btn:disabled { opacity: 0.65; cursor: wait; }
@media (min-width: 768px) { .mobile-menu.active { display: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 3rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 3rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.logo-vk {
    color: white;
}

.logo-apps {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-right {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-right {
        display: flex;
    }
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.nav-cta {
    padding: 0.625rem 1.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    position: relative;
    width: 1.5rem;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-link:hover {
    color: white;
}

.mobile-lang-switcher {
    display: flex;
    gap: 0.25rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.mobile-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60%;
    background: radial-gradient(ellipse at top center, rgba(249, 115, 22, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 7fr 5fr;
    }
}

.hero-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    width: fit-content;
}

.hero-badge svg {
    color: var(--primary);
}

.hero-badge span {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #fb923c;
    letter-spacing: 0.1em;
}

.hero-headline {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 4.5rem;
    }
}

.hero-subline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

.hero-ctas .btn {
    padding: 1rem 2rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .hero-stats { gap: 0.5rem; }
    .hero-stats .stat { flex: 1; min-width: 0; overflow-wrap: anywhere; }
    .hero-stats .stat-divider { flex-shrink: 0; }
    .hero-headline { overflow-wrap: anywhere; }
    .hero-ctas .btn { max-width: 100%; }
}

/* Code Block */
.hero-right {
    display: none;
}

@media (min-width: 768px) {
    .hero-right {
        display: block;
    }
}

.code-block-wrapper {
    position: relative;
}

.code-glow {
    position: absolute;
    inset: -1rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 1.5rem;
    filter: blur(40px);
}

.code-block {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.dot.red { background: rgba(239, 68, 68, 0.8); }
.dot.yellow { background: rgba(234, 179, 8, 0.8); }
.dot.green { background: rgba(34, 197, 94, 0.8); }

.code-filename {
    margin-left: 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: monospace;
}

.code-content {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
}

.code-line {
    display: flex;
    gap: 1rem;
    line-height: 1.8;
}

.code-line.dim {
    opacity: 0.6;
}

.line-num {
    color: var(--text-dim);
    user-select: none;
    min-width: 1rem;
}

.keyword { color: #c084fc; }
.function { color: #60a5fa; }
.string { color: #4ade80; }
.comment { color: var(--text-dim); }

.code-icon {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.code-icon svg {
    color: white;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 8rem 0;
    }
}

.section-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.02), transparent);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2rem;
    margin-top: 1rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.service-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .service-card {
        grid-column: span 4;
    }
    
    .service-card.large {
        grid-column: span 8;
    }
    
    .service-card.full-width {
        grid-column: span 12;
    }
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 40px -10px rgba(249, 115, 22, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.service-card p {
    color: var(--text-muted);
    position: relative;
    line-height: 1.7;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.about-image {
    position: relative;
    min-width: 0;
}

.image-glow {
    position: absolute;
    inset: -1rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 1.5rem;
    filter: blur(30px);
}

.about-image img {
    position: relative;
    width: 100%;
    height: 25rem;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* About — CSS Code-Mockup (offline replacement for stock photo) */
.about-mockup {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    height: 25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.mockup-filename {
    margin-left: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.mockup-body {
    flex: 1;
    padding: 1.25rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.85;
    overflow: hidden;
}

.mockup-line {
    color: var(--text-muted);
    white-space: nowrap;
}

.mockup-line .line-num {
    display: inline-block;
    width: 1.75rem;
    color: var(--text-dim);
    opacity: 0.5;
    font-size: 0.6875rem;
    user-select: none;
}

.mockup-line .keyword {
    color: #c084fc;
}

.mockup-line .function {
    color: #fbbf24;
}

.mockup-line .string {
    color: #6ce7c6;
}

.mockup-line .number {
    color: #fb923c;
}

.mockup-line .comment {
    color: var(--text-dim);
    font-style: italic;
}

.mockup-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: var(--text-dim);
}

.mockup-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.mockup-stat-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: mockup-pulse 1.8s ease-in-out infinite;
}

.mockup-stat-divider {
    width: 1px;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes mockup-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.image-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.badge-vk {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-apps {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-subtitle {
    font-size: 1.125rem;
    color: #fb923c;
    font-weight: 500;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.7;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-item svg {
    color: var(--primary);
}

.value-item span {
    font-weight: 500;
}

/* Process Section */
.process {
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-line {
    display: none;
}

@media (min-width: 768px) {
    .process-line {
        display: block;
        position: absolute;
        top: 6rem;
        left: 16.66%;
        right: 16.66%;
        height: 1px;
        background: linear-gradient(to right, rgba(249, 115, 22, 0.5), rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.5));
    }
}

.process-step {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid rgba(249, 115, 22, 0.2);
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    border-color: var(--primary);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 4fr 8fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
}

.info-item h4 {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-item p,
.info-item a {
    color: var(--text-muted);
    line-height: 1.6;
    display: block;
}

.info-item a:hover {
    color: #fb923c;
}

/* Sponsored / Affiliate Banner in Contact Sidebar */
.contact-ad {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-ad-label {
    font-size: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-ad a {
    display: inline-block;
    line-height: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.contact-ad a:hover {
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.contact-ad img {
    display: block;
    max-width: 270px;
    width: 100%;
    height: auto;
}

.contact-ad-tagline {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0.25rem 0 0 0;
}

/* Octopus Energy Referral Card */
.octopus-card-wrapper {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.octopus-card {
    position: relative;
    display: block;
    padding: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #170c5e 0%, #2d1b73 50%, #1a0f4f 100%);
    overflow: hidden;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.octopus-card:hover {
    transform: translateY(-2px);
}

.octopus-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.octopus-blob-pink {
    top: -1.5rem;
    right: -1.5rem;
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle, #ff5fb1 0%, transparent 70%);
    opacity: 0.4;
}

.octopus-blob-teal {
    bottom: -1rem;
    left: -1rem;
    width: 5rem;
    height: 5rem;
    background: radial-gradient(circle, #6ce7c6 0%, transparent 70%);
    opacity: 0.3;
}

.octopus-card-inner {
    position: relative;
    z-index: 1;
}

.octopus-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.octopus-logo {
    height: 1.25rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.octopus-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.octopus-name {
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    font-size: 1rem;
}

.octopus-headline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.octopus-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0 0 0.875rem 0;
}

.octopus-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease;
}

.octopus-card:hover .octopus-cta {
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-surface);
}

.form-group textarea {
    resize: none;
}

.btn-submit {
    align-self: flex-start;
    padding: 1rem 2rem;
}

/* Social CTA Section */
.social-cta {
    position: relative;
    padding: 5rem 0;
    background: var(--bg-main);
    overflow: hidden;
}

.social-cta-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(80px);
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    pointer-events: none;
}

.social-cta-inner {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.social-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(244, 114, 182, 0.7);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
}

.social-headline {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.social-subline {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 32rem;
    margin: 0 auto 2rem auto;
}

@media (min-width: 768px) {
    .social-subline { font-size: 1.125rem; }
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .social-buttons { gap: 1rem; }
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn-fb {
    background: linear-gradient(135deg, #1877f2 0%, #0866ff 100%);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
}

.social-btn-fb:hover {
    box-shadow: 0 14px 30px rgba(24, 119, 242, 0.4);
}

.social-btn-ig {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    box-shadow: 0 8px 20px rgba(221, 42, 123, 0.25);
}

.social-btn-ig:hover {
    box-shadow: 0 14px 30px rgba(221, 42, 123, 0.4);
}

.social-btn-tt {
    background: #000;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.social-btn-tt:hover {
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255,255,255,0.15);
}

.social-btn-arrow {
    transition: transform 0.2s ease;
}

.social-btn:hover .social-btn-arrow {
    transform: translateX(4px);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-main);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

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

/* Footer Partner Section */
.footer-partner {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-partner-label {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-partner a {
    display: inline-block;
    line-height: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-partner a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-partner img {
    display: block;
    max-width: 120px;
    height: auto;
}

/* Privacy information, not a consent gate. Inline fallback needs no JavaScript. */
.privacy-notice {
    width: min(36rem, calc(100% - 2rem));
    margin: 1rem auto;
    padding: 1.25rem;
    border: 1px solid #475569;
    border-top: 3px solid var(--primary);
    border-radius: 1rem;
    background: var(--bg-surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    color: var(--text-main);
}

.privacy-notice.is-floating {
    position: fixed;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1100;
    margin: 0;
    max-height: calc(100vh - 2rem);
    max-height: min(75dvh, calc(100dvh - 2rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.privacy-notice-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.privacy-notice-heading svg { color: var(--primary); flex-shrink: 0; }
.privacy-notice h2 { font-size: 1.125rem; line-height: 1.4; }
.privacy-notice p { font-size: 0.875rem; margin-bottom: 0.75rem; }
.privacy-notice .privacy-notice-session { color: #b8c4d6; font-size: 0.8125rem; }
.privacy-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: sticky;
    bottom: -1.25rem;
    margin-bottom: -1.25rem;
    padding: 0.5rem 0 1.25rem;
    background: var(--bg-surface);
}
.privacy-notice-actions .btn { flex: 1 1 auto; padding: 0.75rem 1rem; font-size: 0.875rem; }
.privacy-notice-open {
    appearance: none;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}
.privacy-notice-open:hover { color: white; text-decoration: underline; }
.footer-links { flex-wrap: wrap; justify-content: center; }

/* Legal Pages */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 100vh;
}

/* Language switcher content blocks (Impressum / Datenschutz) */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: white;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .legal-page h1 {
        font-size: 3rem;
    }
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.legal-section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section a {
    color: #fb923c;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: var(--primary);
}

.legal-date {
    color: var(--text-dim);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-highlight);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Selection */
::selection {
    background: rgba(249, 115, 22, 0.3);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Keep accessible contrast after the original component rules. */
.btn-primary, .lang-btn.active { color: #020617; }
.btn-primary:hover { background: #fb923c; }
