/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #FF3B30;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background: #FBFBFD;
    --surface: #FFFFFF;
    --border: #D2D2D7;
    --gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-text {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-cta {
    background: var(--gradient) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.search-container {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-bar {
    display: flex;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 0;
    background: transparent;
}

.search-btn {
    background: var(--gradient);
    border: none;
    border-radius: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 1.1rem;
}

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

.floating-domains {
    position: relative;
    width: 400px;
    height: 400px;
}

.domain-bubble {
    position: absolute;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.domain-bubble:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.domain-bubble:nth-child(2) {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.domain-bubble:nth-child(3) {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.domain-bubble:nth-child(4) {
    bottom: 30%;
    right: 25%;
    animation-delay: 3s;
}

.domain-bubble:nth-child(5) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.domain-bubble:nth-child(6) {
    top: 60%;
    left: 40%;
    animation-delay: 5s;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: drift 10s ease-in-out infinite alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #007AFF, #5856D6);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #5856D6, #FF3B30);
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #FF3B30, #007AFF);
    top: 50%;
    left: 50%;
    animation-delay: 6s;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--surface);
}

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

.section-header h2 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--background);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Domain Types Section */
.domain-types {
    padding: 100px 0;
    background: var(--background);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.domain-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.domain-ext {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.domain-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.domain-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.domain-btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.domain-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--surface);
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    padding: 30px;
    background: var(--background);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.cta-section {
    text-align: center;
    padding-top: 40px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.about-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}

.network-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite alternate;
}

.network-node:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.network-node:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.network-node:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.network-node:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.network-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

.network-connection:nth-child(5) {
    top: 30%;
    left: 30%;
    right: 30%;
    transform: rotate(0deg);
}

.network-connection:nth-child(6) {
    top: 30%;
    bottom: 30%;
    left: 30%;
    width: 2px;
    height: auto;
}

.network-connection:nth-child(7) {
    bottom: 30%;
    left: 30%;
    right: 30%;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #86868B;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: #86868B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #86868B;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes drift {
    0% {
        transform: translateX(-20px) translateY(-20px);
    }
    100% {
        transform: translateX(20px) translateY(20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .domain-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-domains {
        width: 300px;
        height: 300px;
    }
    
    .domain-bubble {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        border-radius: 20px;
    }
    
    .search-btn {
        width: 100%;
        height: 48px;
        border-radius: 12px;
    }
    
    .floating-domains {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}