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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Section Styles */
.spinner-section, .number-section {
    padding: 60px 40px;
}

.spinner-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.number-section {
    background: linear-gradient(135deg, #fef7f0 0%, #fed7aa 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a202c;
}

.section-header p {
    font-size: 1.2rem;
    color: #4a5568;
}

/* Spinner Styles */
.spinner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.spinner-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#spinner {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

.spinner-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #e53e3e;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.spinner-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.options-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

#options {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#options:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.spin-button, .generate-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.spin-button:hover, .generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.spin-button:active, .generate-button:active {
    transform: translateY(0);
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result, .number-result {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.result.show, .number-result.show {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
    animation: resultPulse 0.6s ease-out;
}

@keyframes resultPulse {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Number Generator Styles */
.number-generator {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #2d3748;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #f6ad55;
    box-shadow: 0 0 0 3px rgba(246, 173, 85, 0.1);
}

/* Features Section */
.features {
    padding: 80px 40px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #1a202c;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
}

/* Use Cases */
.use-cases {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
}

.use-cases h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a202c;
}

.use-cases-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.use-case {
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    color: #2d3748;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.use-case:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.disclaimer {
    margin-bottom: 40px;
}

.disclaimer h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fed7aa;
}

.disclaimer p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.footer-info {
    border-top: 1px solid #4a5568;
    padding-top: 30px;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Legal Pages Styles */
.legal-content {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #2d3748;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #4a5568;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a5568;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.back-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .spinner-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .spinner-section, .number-section, .features {
        padding: 40px 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .number-inputs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #spinner {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .spinner-section, .number-section, .features {
        padding: 30px 15px;
    }
    
    #spinner {
        width: 200px;
        height: 200px;
    }
}