/* === Base Styles === */
:root {
    /* Primary Colors */
    --primary: #00BCD4;
    --primary-dark: #0097A7;
    --primary-light: #B2EBF2;
    --accent: #673AB7;
    --accent-light: #9575CD;
    
    /* Neutral Colors */
    --background: #121212;
    --surface: #1E1E1E;
    --surface-light: #2A2A2A;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    
    /* Animation */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

/* === Custom Cursor === */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
    z-index: 9999;
    display: none;
}

@media (min-width: 992px) {
    body:hover .cursor {
        display: block;
    }
}

/* === Navigation Overlay === */
.overlay-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal) ease,
                visibility var(--transition-normal) ease;
}

.overlay-nav.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
}

.close-nav {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    color: var(--text);
    cursor: pointer;
    transition: transform var(--transition-fast) ease;
}

.close-nav:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.overlay-content nav ul {
    text-align: center;
}

.overlay-content nav ul li {
    margin: var(--space-lg) 0;
}

.overlay-content nav ul li a {
    font-size: 1.5rem;
    color: var(--text);
    position: relative;
    padding: var(--space-sm) 0;
}

.overlay-content nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal) ease, left var(--transition-normal) ease;
}

.overlay-content nav ul li a:hover {
    color: var(--primary);
}

.overlay-content nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.overlay-content nav ul li a.highlight {
    color: var(--accent);
}

.overlay-content nav ul li a.highlight:hover::after {
    background-color: var(--accent);
}

/* === Header === */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: var(--space-md) 0;
    z-index: 10;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-normal) ease,
                background-color var(--transition-normal) ease;
}

header.hide {
    transform: translateY(-100%);
}

header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: var(--space-sm);
}

.brand h1 {
    font-size: 1.25rem;
    margin-bottom: 0;
    font-weight: 700;
}

.brand h1 span {
    color: var(--primary);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text);
    transition: transform var(--transition-fast) ease,
                opacity var(--transition-fast) ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* === Hero Section === */
.hero {
    padding-top: 6rem;
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) 0;
}

.hero-content {
    margin-bottom: var(--space-xl);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.hero-content h2 span {
    color: var(--primary);
    position: relative;
}

.hero-content h2 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stats {
    display: flex;
    gap: var(--space-xl);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
}

.grid-animation {
    animation: pulse 3s infinite alternate;
}

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast) ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--accent-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn svg {
    margin-left: var(--space-sm);
}

/* === Creator Section === */
.creator-section {
    padding: var(--space-xxl) 0;
    background-color: var(--surface);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.creator-ui {
    background-color: var(--surface-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.toolbar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
}

.toolbar::-webkit-scrollbar {
    height: 4px;
}

.toolbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.toolbar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
}

.tool svg {
    color: var(--text-secondary);
    transition: color var(--transition-fast) ease;
}

.tool span {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast) ease;
}

.tool:hover, .tool.active {
    background-color: rgba(0, 188, 212, 0.1);
}

.tool:hover svg, .tool.active svg {
    color: var(--primary);
}

.tool:hover span, .tool.active span {
    color: var(--text);
}

.editor {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.text-input {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

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

.text-input textarea {
    width: 100%;
    height: 100px;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    resize: none;
    transition: border-color var(--transition-fast) ease;
}

.text-input textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.text-input textarea::placeholder {
    color: var(--text-tertiary);
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.option-group h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.option-buttons {
    display: flex;
    gap: var(--space-sm);
}

.option-btn {
    padding: var(--space-xs) var(--space-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast) ease;
}

.option-btn:hover, .option-btn.active {
    background-color: rgba(0, 188, 212, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.slider {
    width: 100%;
    height: 5px;
    appearance: none;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

.generate-button {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

/* === Features Section === */
.features-section {
    padding: var(--space-xxl) 0;
    background-color: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-fast) ease,
                box-shadow var(--transition-fast) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.feature-icon {
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === CTA Section === */
.cta-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 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='0.05'%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");
    opacity: 0.1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content h2 span {
    position: relative;
}

.cta-content h2 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: white;
    opacity: 0.5;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

/* === Footer === */
footer {
    background-color: var(--surface);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    margin-right: var(--space-md);
}

.brand-text .site-name {
    font-weight: bold;
    margin-bottom: var(--space-xs);
}

.brand-text .tagline {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-xl);
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.link-group ul li {
    margin-bottom: var(--space-sm);
}

.link-group ul li a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast) ease;
}

.link-group ul li a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* === Responsive === */
@media (min-width: 768px) {
    .hero .container {
        flex-direction: row;
        align-items: center;
        gap: var(--space-xl);
    }
    
    .hero-content {
        flex: 1;
        margin-bottom: 0;
    }
    
    .hero-visual {
        flex: 1;
        margin-top: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 3.5rem;
    }
    
    .brand h1 {
        font-size: 1.5rem;
    }
}
