:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-muted: #64748b;
    --gradient-start: #e2e8f0;
    --gradient-end: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, var(--gradient-start) 0%, var(--gradient-end) 50%);
    background-attachment: fixed;
    color: var(--primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-mark {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s;
}

.site-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px; /* optional, to clean up edges */
}

.logo-mark:hover {
    transform: scale(1.02);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.hero {
    text-align: center;
    padding: 100px 0 60px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: -1; pointer-events: none;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--primary);
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

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

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 48px 40px;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.card:hover .icon-box { background: var(--accent); color: white; transform: scale(1.1) rotate(5deg); }

.card h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; color: var(--secondary); letter-spacing: -0.02em; }
.card p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.card .btn-link { font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; }
.card:hover .btn-link { color: var(--accent-hover); }

/* Details Pages Styling */
.page-header {
    padding: 80px 0 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.page-header h1 { font-size: 3.5rem; text-align: left; }
.page-header .subtitle { margin-left: 0; text-align: left; max-width: 100%; margin-bottom: 32px; }

.image-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.cta-btn i { margin-left: 8px; transition: transform 0.3s; }
.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}
.cta-btn:hover i { transform: translateX(4px); }

.features {
    background: white;
    padding: 100px 0;
    border-radius: 48px 48px 0 0;
    flex-grow: 1;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
    margin-top: 40px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 64px;
    letter-spacing: -0.03em;
}

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

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

.feature-item .icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--secondary); }
.feature-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

footer {
    background: white;
    padding: 40px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 900px) {
    .page-header { grid-template-columns: 1fr; text-align: center; padding: 40px 0; gap: 40px; }
    .page-header h1 { text-align: center; font-size: 3rem; }
    .page-header .subtitle { text-align: center; margin: 0 auto 32px auto; }
    h1 { font-size: 3rem; }
    .nav-links { display: none; }
}
