/* 
 * DomainHunter Landing Page CSS
 * 
 * Soft black and blue color palette, minimalistic design
 */

/* === Variables === */
:root {
    /* Colors */
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #0f172a;
    --secondary-light: #1e293b;
    --secondary-dark: #020617;
    --accent-color: #38bdf8;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Typography */
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Consolas', 'Monaco', monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

/* === Loader === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s infinite ease-in-out;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
}

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

/* === Container === */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

/* === Header === */
header {
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

/* === Hero Section === */
.hero {
    padding: 8rem 0 4rem;
    position: relative;
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--background-color) 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    line-height: 1.1;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

/* Terminal Animation */
.terminal {
    background-color: var(--secondary-dark);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    animation: fade-slide-up 1s ease forwards;
    animation-delay: 0.5s;
}

.terminal-header {
    background-color: var(--secondary-light);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-buttons span:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-buttons span:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
    background-color: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: var(--spacing-md);
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-color);
    min-height: 200px;
}

.terminal-line {
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.typewriter-text {
    color: var(--text-color);
    position: relative;
    min-height: 1.5rem;
}

.typewriter-text::after {
    content: '|';
    position: absolute;
    right: -4px;
    top: 0;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

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

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Features Section === */
.features {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-slide-up 0.6s ease forwards;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

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

/* === How It Works Section === */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-color);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateX(-20px);
    animation: fade-slide-right 0.6s ease forwards;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.step-content p {
    color: var(--text-secondary);
}

/* === Contact Section === */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--secondary-light);
}

.contact-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.contact-info {
    flex: 1;
}

.contact-telegram {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.5rem;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.contact-telegram i {
    color: #0088cc;
    font-size: 2rem;
}

.contact-telegram a {
    color: var(--text-color);
    font-weight: 500;
}

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

.contact-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: var(--spacing-md);
    border-left: 3px solid var(--warning-color);
    background-color: rgba(245, 158, 11, 0.1);
}

.contact-animation {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-circle::before, .pulse-circle::after {
    content: '';
    position: absolute;
    border: 2px solid var(--primary-color);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.pulse-circle::after {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* === Footer === */
footer {
    padding: var(--spacing-lg) 0;
    background-color: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
}

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

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

.footer-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-author span {
    color: var(--text-color);
}

/* === Animations === */
@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-slide-right {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fade-in 0.8s ease forwards;
}

.animate-fade-in:nth-child(1) { animation-delay: 0.3s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.5s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.7s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.9s; }

/* === Media Queries === */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .hero .container {
        flex-direction: column;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-content, .hero-visual {
        flex: none;
        width: 100%;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-animation {
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
} 