/* CartOS Domains - Main Stylesheet */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-pale: #eef2ff;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}
h1, h2, h3, h4, h5, h6 { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
code { font-family: 'SF Mono', Monaco, monospace; background: var(--gray-100); padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.9em; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; font-size: 0.95rem; font-weight: 600;
    border-radius: 10px; border: none; cursor: pointer;
    transition: all 0.2s ease; font-family: inherit;
}
.btn-primary { background: var(--gradient-primary); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--dark); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-success { background: var(--success); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Navigation */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 2rem; transition: all 0.3s ease;
}
.nav.scrolled { background: rgba(255,255,255,0.98); box-shadow: var(--shadow-md); padding: 0.75rem 2rem; }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--white); }
.nav.scrolled .nav-logo { color: var(--dark); }
.nav-logo img { height: 32px; }
.nav-logo span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.9); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--gray-600); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn-ghost { color: rgba(255,255,255,0.9); }
.nav.scrolled .nav-cta .btn-ghost { color: var(--gray-600); }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -5px; right: -5px; width: 18px; height: 18px;
    background: var(--error); color: var(--white); font-size: 0.7rem; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }
.nav.scrolled .hamburger span { background: var(--dark); }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; top: 70px; left: 0; right: 0;
    background: var(--white); padding: 1rem; box-shadow: var(--shadow-lg);
    flex-direction: column; gap: 0.5rem; z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 0.75rem 1rem; color: var(--dark); border-radius: 8px; }
.mobile-menu a:hover { background: var(--gray-100); }

/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 8rem 2rem 4rem; background: var(--gradient-hero); position: relative; overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 1rem; }
.hero-content p { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* Domain Search */
.domain-search-box { max-width: 600px; margin: 0 auto 2rem; }
.domain-search-form { display: flex; background: var(--white); border-radius: 16px; padding: 0.5rem; box-shadow: var(--shadow-xl); }
.search-input-wrapper { display: flex; flex: 1; align-items: center; }
.domain-search-form input {
    flex: 1; padding: 1rem 1.5rem; font-size: 1.1rem; border: none; outline: none;
    background: transparent; font-family: inherit;
}
.search-btn { padding: 1rem 2rem; }
.hero-tlds { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.tld-chip {
    background: rgba(255,255,255,0.1); color: var(--white); padding: 0.5rem 1rem;
    border-radius: 50px; font-size: 0.9rem; backdrop-filter: blur(10px);
}
.tld-chip.hot { background: var(--accent); color: var(--dark); }

/* Search Results */
.search-results { display: none; padding: 3rem 2rem; background: var(--gray-50); }
.search-results.active { display: block; }
.results-container { max-width: 900px; margin: 0 auto; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.results-header h2 { font-size: 1.5rem; }
.result-item {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: 1.5rem; align-items: center; padding: 1.25rem 1.5rem;
    background: var(--white); border-radius: 12px; margin-bottom: 0.75rem;
    border: 2px solid var(--gray-100); transition: all 0.2s;
}
.result-item:hover { border-color: var(--primary-light); }
.result-item.available { border-left: 4px solid var(--success); }
.result-item.taken { border-left: 4px solid var(--gray-300); opacity: 0.7; }
.result-item.premium { border-left: 4px solid var(--accent); }
.result-domain { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 600; }
.result-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; margin-top: 0.25rem; }
.result-status.available { color: var(--success); }
.result-status.taken { color: var(--gray-400); }
.result-status.premium { color: var(--accent); }
.result-price { font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.result-price .period { font-size: 0.85rem; font-weight: 400; color: var(--gray-500); }
.result-renew { font-size: 0.8rem; color: var(--gray-500); }
.results-more { text-align: center; margin-top: 2rem; color: var(--gray-500); }
.results-loading, .results-error { text-align: center; padding: 3rem 2rem; }
.results-loading p, .results-error p { color: var(--gray-500); margin-top: 1rem; }
.results-error p { color: var(--error); }
.spinner { width: 40px; height: 40px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
section { padding: 5rem 2rem; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-label {
    display: inline-block; background: var(--primary-pale); color: var(--primary);
    padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--gray-500); }

/* TLD Pricing Grid */
.tld-pricing { background: var(--gray-50); }
.tld-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.tld-card {
    background: var(--white); border-radius: 16px; padding: 2rem; text-align: center;
    border: 2px solid var(--gray-100); transition: all 0.3s; position: relative;
}
.tld-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tld-card.featured { border-color: var(--primary); background: linear-gradient(135deg, var(--primary-pale) 0%, var(--white) 100%); }
.tld-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--dark); padding: 0.25rem 0.75rem;
    border-radius: 50px; font-size: 0.7rem; font-weight: 700;
}
.tld-name { font-family: 'Sora', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.tld-desc { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 1rem; }
.tld-price { margin-bottom: 0.5rem; }
.tld-price .price { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.tld-price .price-old { text-decoration: line-through; color: var(--gray-400); font-size: 1rem; margin-right: 0.5rem; }
.tld-price .period { font-size: 0.9rem; color: var(--gray-500); }
.tld-renew { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 1.5rem; }
.tld-cta { text-align: center; margin-top: 2rem; }

/* Features Grid */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.feature-card { padding: 2rem; border-radius: 16px; background: var(--gray-50); transition: all 0.3s; }
.feature-card:hover { background: var(--white); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray-500); font-size: 0.95rem; }

/* Transfer Section */
.transfer-section { background: var(--gradient-dark); color: var(--white); }
.transfer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.transfer-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.transfer-content p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.transfer-benefits { list-style: none; margin-bottom: 2rem; }
.transfer-benefits li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: rgba(255,255,255,0.9); }
.transfer-benefits .check { color: var(--success); font-weight: bold; }
.transfer-form { display: flex; gap: 0.5rem; max-width: 400px; }
.transfer-form input { flex: 1; padding: 0.875rem 1.25rem; border: none; border-radius: 10px; font-size: 1rem; }
.transfer-graphic { text-align: center; padding: 3rem; background: rgba(255,255,255,0.05); border-radius: 24px; }
.transfer-icon-box { display: flex; align-items: center; justify-content: center; gap: 1.5rem; font-size: 3rem; margin-bottom: 1rem; }
.transfer-arrow { color: var(--primary); }

/* Why Us */
.why-us { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.why-card { padding: 2rem; }
.why-number { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 800; color: var(--primary-pale); margin-bottom: 1rem; }
.why-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.why-card p { color: var(--gray-500); font-size: 0.95rem; }

/* Bulk Section */
.bulk-section { background: var(--gradient-primary); color: var(--white); text-align: center; }
.bulk-container { max-width: 800px; margin: 0 auto; }
.bulk-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.bulk-section h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.bulk-section p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; }
.bulk-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.bulk-feature { background: rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.9rem; }

/* FAQ */
.faq-section { background: var(--gray-50); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 1rem; overflow: hidden; border: 1px solid var(--gray-200); }
.faq-question {
    width: 100%; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer;
    font-family: inherit; color: var(--dark);
}
.faq-toggle { font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all 0.3s; }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 500px; }
.faq-answer p { color: var(--gray-600); }

/* CTA */
.cta { background: var(--gradient-hero); color: var(--white); text-align: center; padding: 6rem 2rem; }
.cta-content { max-width: 600px; margin: 0 auto; }
.cta h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.cta-search-form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
.cta-search-form input { flex: 1; padding: 1rem 1.5rem; border: none; border-radius: 10px; font-size: 1rem; }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 4rem 2rem 2rem; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 36px; height: 36px; background: var(--gray-700); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: background 0.2s; }
.footer-social a:hover { background: var(--primary); }
.footer-links h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; color: var(--white); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--gray-700); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--gray-400); }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a { color: var(--gray-400); }
.footer-bottom-links a:hover { color: var(--white); }

/* Page Header (for inner pages) */
.page-header {
    padding: 8rem 2rem 3rem; background: var(--gradient-dark); text-align: center;
}
.page-header h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .tld-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .tld-grid, .features-grid, .why-grid { grid-template-columns: 1fr; }
    .transfer-container { grid-template-columns: 1fr; text-align: center; }
    .transfer-form { margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .result-item { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
    .hero { padding: 6rem 1rem 3rem; }
    .hero-content h1 { font-size: 2rem; }
    .domain-search-form { flex-direction: column; }
    .search-btn { width: 100%; }
    .hero-tlds { gap: 0.5rem; }
    .tld-chip { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
