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

:root {
    --bg: #000000;
    --fg: #FFFFFF;
    --muted: #AAAAAA;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: #111111;
    --light-bg: #1E1E1E;
    --accent: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg: #FFFFFF;
    --fg: #000000;
    --muted: #555555;
    --border: rgba(0, 0, 0, 0.1);
    --card-bg: #F0F0F0;
    --light-bg: #F8F8F8;
    --accent: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--fg);
    background-color: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--fg);
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 500; }

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 32px 0;
    background: var(--bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--fg);
}

.logo-mark {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.logo-r {
    position: absolute;
    font-size: 24px;
    font-weight: 600;
    color: var(--fg);
}

.logo-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--fg);
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--fg);
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-number {
    position: absolute;
    left: -24px;
    font-size: 11px;
    color: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--fg);
}

.nav-link:hover .nav-number {
    opacity: 1;
    left: -20px;
}

.contact-link {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-line {
    width: 1px;
    height: 24px;
    background: var(--border);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-line {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--fg);
    margin: 5px 0;
    transition: var(--transition);
}

/* Theme Switch */
.theme-switch {
    width: 48px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.switch-track {
    width: 100%;
    height: 100%;
    background: var(--muted);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--bg);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

body.light-mode .switch-track {
    background: var(--muted);
}

body.light-mode .switch-thumb {
    transform: translateX(24px);
    background: var(--bg);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0 160px;
    background: var(--light-bg);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.floating-shape {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 { top: 20%; right: 10%; width: 300px; height: 300px; animation-delay: 0s; }
.shape-2 { top: 60%; left: 5%; width: 200px; height: 200px; animation-delay: -7s; animation-duration: 25s; }
.shape-3 { bottom: 20%; right: 20%; width: 150px; height: 150px; animation-delay: -14s; animation-duration: 30s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.subtitle-line {
    width: 40px;
    height: 1px;
    background: var(--fg);
}

.hero-subtitle span {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-title { margin-bottom: 32px; }
.title-line { display: block; }

.hero-description {
    max-width: 600px;
    margin-bottom: 48px;
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.btn-primary, .btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

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

.btn-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--bg);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.btn-primary:hover .btn-line { transform: scaleX(1); }

.btn-secondary {
    background: transparent;
    color: var(--fg);
    padding: 16px 0;
}

.btn-secondary i { transition: var(--transition); }
.btn-secondary:hover i { transform: translateX(4px); }

/* Stats */
.hero-stats {
    position: relative;
    margin-top: 120px;
    padding-top: 80px;
    border-top: 1px solid var(--border);
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 3.5rem;
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-divider { width: 1px; background: var(--border); }

/* Section Styles */
.section-header { margin-bottom: 80px; }

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--fg);
}

.section-label span {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

/* Philosophy */
.philosophy { padding: 160px 0; }

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.philosophy-item {
    position: relative;
    padding-right: 40px;
}

.philosophy-number {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 16px;
}

.philosophy-line {
    position: absolute;
    top: 40px;
    right: 0;
    width: 1px;
    height: calc(100% - 80px);
    background: var(--border);
}

.philosophy-item:last-child .philosophy-line { display: none; }

/* Services */
.services {
    padding: 160px 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--fg);
}

.service-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 32px;
}

.service-number {
    font-size: 14px;
    color: var(--muted);
    opacity: 0.5;
}

.service-details {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.detail-item:last-child { margin-bottom: 0; }

.detail-label { 
    font-size: 14px; 
    color: var(--muted); 
    min-width: 150px;
}
.detail-value { font-size: 14px; font-weight: 500; color: var(--fg); }

/* Process */
.process { padding: 160px 0; }

.process-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.process-steps { position: relative; }

.process-step {
    position: relative;
    display: flex;
    margin-bottom: 80px;
}

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

.step-marker {
    position: relative;
    width: 60px;
    margin-right: 40px;
}

.step-circle {
    width: 12px;
    height: 12px;
    background: var(--fg);
    border-radius: 50%;
}

.step-connector {
    position: absolute;
    top: 12px;
    left: 5px;
    width: 1px;
    height: calc(100% + 80px);
    background: var(--border);
}

.process-step:last-child .step-connector { display: none; }

.step-number {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 12px;
}

/* Contact */
.contact { padding: 160px 0; }

.contact-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-content {
    max-width: 800px;
}

.contact-description { margin: 32px 0 48px; }

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg);
    color: var(--fg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer .logo-text { color: var(--fg); }

.footer-description {
    margin-top: 24px;
    color: var(--muted);
    max-width: 400px;
}

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

.link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-group h4 {
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.link-group a {
    text-decoration: none;
    color: var(--muted);
    font-size: 15px;
    transition: var(--transition);
}

.link-group a:hover { color: var(--fg); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.footer-info p {
    font-size: 14px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .philosophy-grid, .services-grid { grid-template-columns: 1fr; gap: 48px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
    .stat-divider:nth-child(2), .stat-divider:nth-child(4) { display: none; }
    .process-container, .contact-container { grid-template-columns: 1fr; gap: 60px; }
    .footer-content { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .navbar { padding: 24px 0; }
    .nav-links { display: none; }
    .hero { padding: 160px 0 120px; }
    section { padding: 120px 0; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; gap: 32px; }
    .footer-info { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .service-card { padding: 32px 24px; }
}