
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Technologische Hintergrundelemente */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.2;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    background: #3498db;
    top: 10%;
    left: 5%;
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(2) {
    width: 300px;
    height: 300px;
    background: #2ecc71;
    top: 60%;
    left: 80%;
    animation: float 18s infinite ease-in-out reverse;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: #9b59b6;
    top: 30%;
    left: 70%;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-20px, 15px) rotate(5deg);
    }
    50% {
        transform: translate(10px, -20px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 10px) rotate(3deg);
    }
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

header {
    text-align: center;
    padding: 30px 0 15px;
}

h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    letter-spacing: 1px;
    animation: glow 2s infinite alternate;
    padding: 0 10px;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    }
    100% {
        text-shadow: 0 0 25px rgba(46, 204, 113, 0.5), 0 0 35px rgba(46, 204, 113, 0.3);
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #ecf0f1;
    font-weight: 300;
    padding: 0 15px;
}

.intro-box {
    background: rgba(25, 40, 55, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 15px;
    margin: 15px 0;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.intro-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.highlight {
    color: #2ecc71;
    font-weight: bold;
}

.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.input-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin-bottom: 12px;
}

input {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(52, 152, 219, 0.5);
    border-right: none;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.4);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.analyze-btn {
    padding: 0 30px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyze-btn:hover {
    background: linear-gradient(90deg, #2980b9, #27ae60);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.analyze-btn i {
    margin-left: 6px;
    font-size: 0.9rem;
}

/* Digitales Sci-Fi Ladeanimation */
.loading-animation {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 30, 0.95);
    z-index: 2000;
}

.digital-loader {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.digital-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #3498db;
    border-right: 4px solid #2ecc71;
    animation: rotate 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.digital-ring:nth-child(2) {
    width: 90%;
    height: 90%;
    animation: rotate 1.8s linear infinite reverse;
    border-top: 4px solid #9b59b6;
    border-right: 4px solid #e74c3c;
}

.digital-ring:nth-child(3) {
    width: 80%;
    height: 80%;
    animation: rotate 2.2s linear infinite;
    border-top: 4px solid #f1c40f;
    border-right: 4px solid #1abc9c;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.digital-center {
    position: relative;
    width: 140px;
    height: 140px;
    background: rgba(25, 40, 55, 0.8);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1px solid rgba(52, 152, 219, 0.5);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.3);
}

.loading-percentage {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.loading-text {
    font-size: 1.1rem;
    color: #ecf0f1;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.binary-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.binary-digit {
    position: absolute;
    color: rgba(52, 152, 219, 0.3);
    font-size: 14px;
    font-family: monospace;
    font-weight: bold;
    opacity: 0;
    animation: digitFall 3s linear infinite;
}

@keyframes digitFall {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(280px);
        opacity: 0;
    }
}

.digital-flare {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    animation: pulse 2s infinite alternate;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 35px rgba(46, 204, 113, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.5);
    position: relative;
    animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2ecc71;
}

.modal p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 18px;
    color: #ecf0f1;
}

.accuracy {
    display: inline-block;
    background: rgba(46, 204, 113, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    margin: 10px 0;
    font-weight: bold;
    color: #2ecc71;
    font-size: 0.9rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    padding: 14px 30px;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    font-weight: bold;
}

.whatsapp-btn:hover {
    background: linear-gradient(90deg, #128C7E, #075E54);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.small-note {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-top: 10px;
    display: block;
    line-height: 1.4;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ecf0f1;
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e74c3c;
}

.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.alert-content {
    background: rgba(25, 40, 55, 0.95);
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.alert-content p {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: #ecf0f1;
}

.alert-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 9px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.alert-btn:hover {
    background: #c0392b;
}

footer {
    background: rgba(15, 25, 35, 0.9);
    padding: 18px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(52, 152, 219, 0.3);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    color: #7f8c8d;
    font-size: 0.8rem;
    width: 100%;
    line-height: 1.5;
}

.feature-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 30px 0;
}

.card {
    background: rgba(25, 40, 55, 0.7);
    border-radius: 14px;
    padding: 20px;
    width: calc(33.333% - 20px);
    min-width: 220px;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.card p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        padding: 0 5px;
    }

    .subtitle {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .input-container {
        flex-direction: column;
    }

    input {
        border-radius: 50px;
        margin-bottom: 10px;
        text-align: center;
        padding: 12px 18px;
        width: 100%;
    }

    .analyze-btn {
        border-radius: 50px;
        padding: 12px;
        width: 100%;
    }

    .feature-cards {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .card {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }

    .digital-loader {
        width: 240px;
        height: 240px;
    }

    .digital-center {
        width: 110px;
        height: 110px;
    }

    .loading-percentage {
        font-size: 1.8rem;
    }

    .loading-text {
        font-size: 1rem;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .modal h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .intro-box p {
        font-size: 1rem;
    }

    .card {
        padding: 18px 15px;
    }

    .card h3 {
        font-size: 1.15rem;
    }

    .card p {
        font-size: 0.85rem;
    }
}
