:root {
    /* Theme Light */
    --bg-main: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #666666;
    --btn-bg: #000000;
    --btn-text: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.05);
    --badge-bg: rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
    /* Theme Dark */
    --bg-main: #0A0A0A;
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --btn-bg: #FFFFFF;
    --btn-text: #000000;
    --card-bg: rgba(20, 20, 20, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --badge-bg: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(10, 10, 10, 0.8);
}

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

body {
    /* Utilizing high-end native operating system fonts for 100% offline dependency-free setup */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

/* 
    This adds the attached "tt" logo as a subtle repeating pattern across 
    the entire background of the website just as requested.
*/
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('logo.png'); /* Pattern based on logo */
    background-size: 80px 80px; /* Small tile size */
    background-repeat: repeat;
    opacity: 0.03; /* Extremely subtle */
    pointer-events: none; /* So it doesn't block clicks */
    z-index: -3; /* Keeps it behind everything */
}

/* Make it slightly more visible on Dark Mode if desired */
[data-theme="dark"] body::before {
    opacity: 0.05;
    filter: invert(1);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

/* Designed to accommodate the attached "tt" beige square logo */
.logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 12px; 
    background: #F5F5F0; 
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: var(--badge-bg);
}

.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 18px 40px;
    border-radius: 9999px; /* Radiant template uses pill buttons */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.04);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 220px 0 160px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 0;
    background: url('hero-bg.png') center/cover no-repeat;
    border-radius: 60px; /* Big rounded corners like Radiant template */
    z-index: -2;
    opacity: 0.3; /* Increased opacity slightly for the dramatic new bg */
    filter: contrast(1.1) brightness(0.9);
    transition: opacity 0.4s ease, filter 0.4s ease;
}

[data-theme="dark"] .hero-bg {
    opacity: 0.25;
    background-blend-mode: multiply;
}

.credibility-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--badge-bg);
    color: var(--text-primary);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 32px;
}

/* Split grid structure for header and right text */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-end;
}

h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-sub {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* What We Do */
.what-we-do {
    padding: 160px 0;
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

.what-we-do p {
    font-size: 24px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features */
.features-section {
    position: relative;
    padding: 80px 0 160px;
}

.features-bg {
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    bottom: 0px;
    background: url('aerial-bg.png') center/cover no-repeat;
    border-radius: 60px;
    z-index: -2;
    opacity: 0.3;
}

[data-theme="dark"] .features-bg {
    opacity: 0.15;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    padding: 64px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.04);
}

[data-theme="dark"] .glass-card {
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Inline SVG Checkmark for 100% Offline No-Dependency Setup */
.feature-list li::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .feature-list li::before {
    filter: invert(1);
}

/* Footer */
footer {
    padding: 120px 0;
    text-align: center;
}

.footer-card {
    background: var(--badge-bg);
    border-radius: 40px;
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-card h3 {
    font-size: 40px;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-card p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-split, .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    h1 {
        font-size: 56px;
    }
    .hero-sub {
        font-size: 20px;
    }
    .container {
        padding: 0 24px;
    }
    .hero-bg, .features-bg {
        left: 20px;
        right: 20px;
        border-radius: 32px;
    }
    .glass-card {
        padding: 40px 32px;
        border-radius: 32px;
    }
    .hero-section {
        padding: 160px 0 100px;
        flex-direction: column;
    }
}
