/* Reset and base styles */
* {
    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: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    z-index: 100;
}

.nav-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0f172a;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0f172a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.cta-button {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    margin-bottom: 1rem;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-note {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

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

.knot-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.knot-circle {
    width: 120px;
    height: 120px;
    border: 3px solid #0f172a;
    border-radius: 50%;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

.knot-line {
    position: absolute;
    background: #0f172a;
    border-radius: 2px;
    animation: knotFlow 4s ease-in-out infinite;
}

.knot-line-1 {
    width: 80px;
    height: 3px;
    top: 50%;
    left: 50%;
    --rotation: 45deg;
    transform: translate(-50%, -50%) rotate(var(--rotation));
    animation-delay: 0s;
}

.knot-line-2 {
    width: 60px;
    height: 3px;
    top: 50%;
    left: 50%;
    --rotation: -45deg;
    transform: translate(-50%, -50%) rotate(var(--rotation));
    animation-delay: 1.5s;
}

.knot-line-3 {
    width: 100px;
    height: 3px;
    top: 50%;
    left: 50%;
    --rotation: 90deg;
    transform: translate(-50%, -50%) rotate(var(--rotation));
    animation-delay: 3s;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0f172a;
}

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

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

@keyframes knotFlow {
    0% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.6) rotate(var(--rotation));
    }
    25% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(calc(var(--rotation) + 5deg));
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3) rotate(var(--rotation));
    }
    75% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(calc(var(--rotation) - 5deg));
    }
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(0.6) rotate(var(--rotation));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .knot-animation {
        width: 250px;
        height: 250px;
    }
    
    .knot-circle {
        width: 100px;
        height: 100px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        padding: 1.5rem 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .knot-animation {
        width: 200px;
        height: 200px;
    }
    
    .knot-circle {
        width: 80px;
        height: 80px;
    }
}
