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

body {
    font-family: 'Gothic A1', sans-serif;
    overflow-x: hidden;
    background-color: #0a0e27;
    min-height: 100vh;
}

/* Main Section */
.main-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0a0e27;
    overflow: hidden;
    padding: 60px 20px;
}

.main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1229 100%);
    z-index: 0;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(40px); }
}

.slide-line {
    animation: slideRight 5s ease-in-out infinite;
}

/* Content Container */
.content-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Back Link */
.back-link {
    align-self: flex-start;
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #FA7F31;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1.2s ease-out;
}

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

h1 {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.tagline {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: #FA7F31;
    font-style: italic;
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Generator Card */
.generator-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out 0.2s backwards;
}

.generator-card:hover {
    border-color: rgba(250, 127, 49, 0.4);
}

/* Control Group */
.control-group {
    margin-bottom: 30px;
}

.control-group label {
    display: block;
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FA7F31;
    margin-bottom: 12px;
}

.control-group input[type="number"] {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Gothic A1', sans-serif;
    font-size: 18px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.control-group input[type="number"]:focus {
    outline: none;
    border-color: #FA7F31;
    box-shadow: 0 0 20px rgba(250, 127, 49, 0.2);
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 18px 40px;
    font-family: 'Gothic A1', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #FA7F31;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background: #ff9654;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(250, 127, 49, 0.3);
}

/* Output Card */
.output-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

.output-card:hover {
    border-color: rgba(250, 127, 49, 0.4);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.output-title {
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FA7F31;
}

.copy-btn {
    padding: 10px 24px;
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.copy-btn.copied {
    background: #FA7F31;
    border-color: #FA7F31;
}

.output-text {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    font-family: 'Gothic A1', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    resize: vertical;
}

.output-text:focus {
    outline: none;
    border-color: rgba(250, 127, 49, 0.5);
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

.footer p {
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer .highlight {
    color: #FA7F31;
    font-style: italic;
}

.phrase-count {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .main-section {
        padding: 40px 15px;
    }

    .generator-card,
    .output-card {
        padding: 25px;
    }

    h1 {
        font-size: clamp(36px, 12vw, 60px);
    }

    .back-link {
        margin-bottom: 30px;
    }
}