/* ULTRA-MINIMAL DESIGN */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --navy: #1e3a5f;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --primary-red: #e74c3c;
    --coral: #ff6b6b;
    --orange: #ff8c42;
    --light-orange: #ffa502;
    --accent-warm: #fd79a8;
    --gradient-start: #e74c3c;
    --gradient-mid: #ff6b6b;
    --gradient-end: #ffa502;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
    font-weight: 300;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: var(--white);
    padding: 30px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--light-gray);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-svg {
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.05);
}

.logo-svg .logo-wing-left {
    transform-origin: 45px 50px;
    animation: flutter-left 4s ease-in-out infinite;
}

.logo-svg .logo-wing-right {
    transform-origin: 55px 50px;
    animation: flutter-right 4s ease-in-out infinite;
}

@keyframes flutter-left {
    0%, 100% { transform: rotateY(0deg) translateX(0); }
    25% { transform: rotateY(20deg) translateX(-2px); }
    50% { transform: rotateY(0deg) translateX(0); }
    75% { transform: rotateY(15deg) translateX(-1px); }
}

@keyframes flutter-right {
    0%, 100% { transform: rotateY(0deg) translateX(0); }
    25% { transform: rotateY(-20deg) translateX(2px); }
    50% { transform: rotateY(0deg) translateX(0); }
    75% { transform: rotateY(-15deg) translateX(1px); }
}

.logo:hover .logo-wing-left {
    animation-duration: 0.5s;
}

.logo:hover .logo-wing-right {
    animation-duration: 0.5s;
}

.logo-svg .logo-center {
    animation: pulse-body 3s ease-in-out infinite;
}

@keyframes pulse-body {
    0%, 100% { opacity: 0.8; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

.logo-svg .logo-node {
    animation: glow-node 2s ease-in-out infinite;
}

.logo-svg .logo-node:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes glow-node {
    0%, 100% { opacity: 0.8; r: 2; }
    50% { opacity: 1; r: 2.5; }
}

@keyframes pulse-center {
    0%, 100% { r: 8; opacity: 1; }
    50% { r: 10; opacity: 0.8; }
}

@keyframes orbit {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--black);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--light-gray);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--light-gray);
    color: var(--gray);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
}

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

/* Hero Section */
.hero {
    margin-top: 90px;
    padding: 160px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.02) 0%,
        rgba(255, 107, 107, 0.03) 50%,
        rgba(255, 165, 2, 0.02) 100%);
    overflow: hidden;
}

.hero-compact {
    padding: 80px 0 60px;
    background: linear-gradient(135deg,
        rgba(231, 76, 60, 0.02) 0%,
        rgba(255, 107, 107, 0.03) 50%,
        rgba(255, 165, 2, 0.02) 100%);
    border-bottom: 1px solid var(--light-gray);
}

.hero-compact h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-compact p {
    margin-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-butterfly {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-48%, -52%) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(-52%, -48%) rotate(-5deg) scale(1.02);
    }
    75% {
        transform: translate(-48%, -50%) rotate(3deg) scale(1.03);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary-red);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero h2 {
    font-size: 84px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 30px;
    color: var(--black);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-accent {
    background: linear-gradient(90deg, var(--primary-red), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.hero p {
    font-size: 22px;
    color: var(--gray);
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-cta:hover::before {
    left: 100%;
}

/* Animation keyframes for network nodes */
@keyframes glow {
    0%, 100% { opacity: 0.5; filter: blur(0px); }
    50% { opacity: 1; filter: blur(2px) brightness(1.5); }
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.why-main h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.why-lead {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--black);
    margin-bottom: 16px;
}

.why-philosophy {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 30px;
}

.why-opensource {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
}

.why-opensource h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.opensource-list {
    list-style: none;
    margin-bottom: 16px;
}

.opensource-list li {
    padding: 8px 0;
    font-size: 14px;
}

.opensource-list a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.opensource-list a:hover {
    opacity: 0.7;
}

.opensource-list span {
    color: var(--gray);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.github-link:hover {
    color: var(--primary-red);
}

.github-link svg {
    transition: transform 0.2s;
}

.github-link:hover svg {
    transform: scale(1.1);
}

/* Highlight Boxes */
.why-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-box {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.highlight-voice {
    border-left: 4px solid var(--primary-red);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(255, 140, 66, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.highlight-icon svg {
    color: var(--primary-red);
}

.highlight-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.highlight-stat {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.highlight-stat span {
    font-size: 16px;
    font-weight: 500;
}

.highlight-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
}

/* Network Highlight Box */
.highlight-network {
    background: linear-gradient(135deg, #2c1810 0%, #3d1f1f 50%, #2c1810 100%);
    color: var(--white);
    min-height: 200px;
}

.highlight-network .network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.highlight-network .network-bg .node {
    animation: glow 3s ease-in-out infinite;
}

.highlight-network .network-bg .node:nth-child(odd) {
    animation-delay: 1s;
}

.highlight-network .network-bg .connection {
    animation: pulse-line 4s ease-in-out infinite;
}

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

.highlight-network h3 {
    color: var(--white);
}

.highlight-network h3 a {
    color: var(--coral);
    text-decoration: none;
    font-size: 24px;
    transition: opacity 0.2s;
}

.highlight-network h3 a:hover {
    opacity: 0.8;
}

.highlight-network .highlight-stat {
    background: none;
    -webkit-text-fill-color: var(--coral);
    color: var(--coral);
}

.highlight-network .highlight-desc {
    color: rgba(255,255,255,0.8);
}

.highlight-services {
    list-style: none;
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.highlight-services li {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--coral);
    background: rgba(255,107,107,0.15);
    padding: 6px 12px;
    border-radius: 4px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

/* Erlang Service */
.erlang-service {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    overflow: hidden;
}

.erlang-service-header {
    background: linear-gradient(135deg, var(--primary-red), var(--orange));
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.erlang-service-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.erlang-service-header .service-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.erlang-service-content {
    padding: 40px;
}

.service-offerings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.offering {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
}

.offering h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--black);
}

.offering p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
}

.service-benefits {
    border-top: 1px solid var(--light-gray);
    padding-top: 30px;
}

.benefits-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    list-style: none;
}

.benefits-list li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: var(--gray);
    border-top: 1px solid var(--light-gray);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.erlang-service-footer {
    background: var(--light-gray);
    padding: 20px 40px;
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

.erlang-service-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.erlang-service-footer a:hover {
    opacity: 0.7;
}


/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--navy);
    color: var(--white);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--coral);
    margin-bottom: 20px;
    opacity: 0.8;
}

.contact h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.contact-card-small {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    color: var(--coral);
}

.contact-card-small h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.6);
}

.contact-card-small a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-card-small a:hover {
    color: var(--coral);
}

.contact-card-cta {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-card-cta > p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-offerings {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.contact-offerings li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-offerings li:first-child {
    border-top: none;
}

.contact-offerings li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--coral);
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    background: linear-gradient(90deg, var(--primary-red), var(--orange));
    border-radius: 50px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.contact-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.contact-cta-btn svg {
    transition: transform 0.3s ease;
}

.contact-cta-btn:hover svg {
    transform: translate(2px, -2px);
}

.contact-company {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card-company {
    text-align: center;
    padding: 30px 40px;
}

.contact-card-company strong {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.contact-card-company p {
    margin: 8px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}

.as-link {
    color: var(--coral);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.as-link:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 13px;
    opacity: 0.6;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-content .eu-flag {
    vertical-align: middle;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
    border-radius: 2px;
}

.footer-content:hover .eu-flag {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .why-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-highlights {
        flex-direction: row;
    }

    .highlight-box {
        flex: 1;
    }

    .service-offerings {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-column:first-child {
        flex-direction: row;
    }

    .contact-card-small {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-compact {
        padding: 60px 0 40px;
    }

    .hero-compact h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-label {
        font-size: 10px;
    }

    .why-section {
        padding: 60px 0;
    }

    .why-main h2 {
        font-size: 28px;
    }

    .why-lead {
        font-size: 18px;
    }

    .why-highlights {
        flex-direction: column;
    }

    .highlight-stat {
        font-size: 24px;
    }

    .erlang-service-header {
        padding: 30px 20px;
    }

    .erlang-service-header h2 {
        font-size: 24px;
    }

    .erlang-service-content {
        padding: 30px 20px;
    }

    .erlang-service-footer {
        padding: 16px 20px;
    }

    .contact h2 {
        font-size: 32px;
    }

    .contact-column:first-child {
        flex-direction: column;
    }

    .contact-card-cta h3 {
        font-size: 24px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }

    .language-selector {
        margin-left: 10px;
        padding-left: 10px;
        gap: 5px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .footer-content .eu-flag {
        width: 30px;
        height: 20px;
    }
}