:root {
    /* Light Theme Colors */
    --primary: #673de6; /* Hostinger Violet */
    --primary-hover: #5a35c9;
    
    --bg: #fcfcfc; /* Ultra light background */
    --surface: #ffffff; /* Tile Background */
    --surface-hover: #fafafa;
    
    --line: rgba(0, 0, 0, 0.08);
    --line-soft: rgba(0, 0, 0, 0.04);
    
    --ink: #18181b; /* Near black */
    --ink-2: #52525b; /* Medium gray */
    --ink-3: #a1a1aa; /* Light gray */
    
    --header-h: 4rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', 'Plus Jakarta Sans', 'Noto Sans Sinhala', sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }
.relative { position: relative; }
.flex-1 { flex: 1; }
.pb-20 { padding-bottom: 5rem; }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-auto { width: auto; }
}

@media (min-width: 768px) {
    .md\:mt-16 { margin-top: 4rem; }
    .md\:mt-24 { margin-top: 6rem; }
}

.landing-shell {
    width: 100%;
    max-width: 70rem; /* Slightly narrower for mature elegance */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography - Minimal, Small, Not Bold */
.landing-display {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.landing-sub {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 48rem;
    letter-spacing: -0.01em;
    font-weight: 400;
    text-wrap: balance;
}

.sinhala-text {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 0.875rem;
    color: var(--ink-3);
    font-weight: 400;
}

.landing-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500; /* Medium is the max we use */
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(103, 61, 230, 0.06);
    border: 1px solid rgba(103, 61, 230, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

/* Background Mesh & Glows */
.landing-mesh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.landing-mesh {
    position: absolute;
    inset: -50% -50% 0 -50%;
    background-image: 
        radial-gradient(circle at center 30%, rgba(103, 61, 230, 0.06) 0%, transparent 50%),
        linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
    background-size: 100% 100%, 3rem 3rem, 3rem 3rem;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 60%);
}

/* Header */
.landing-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(252, 252, 252, 0.7); /* Light transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    font-family: 'Jost', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem; 
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

.landing-nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Buttons */
.landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--ink);
    color: var(--bg);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.landing-cta[data-size="sm"] {
    padding: 0.4rem 0.8rem;
    font-size: 0.8125rem;
}

.landing-cta:hover {
    background: #27272a;
    transform: scale(0.98);
}

.landing-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.landing-cta-ghost:hover {
    background: rgba(0,0,0,0.02);
}

/* Hero Section */
.landing-hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 4rem; /* Padding for small screens if content overflows */
}

/* Bento Tiles */
.grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:min-h-\[22rem\] { min-height: 20rem; }
}

.landing-tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.03);
}

.landing-tile:hover {
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.06);
}

.landing-mesh-small {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at top right, rgba(103, 61, 230, 0.05), transparent 60%),
        linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
    background-size: 100% 100%, 2rem 2rem, 2rem 2rem;
    mask-image: linear-gradient(135deg, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.landing-tile > .relative {
    z-index: 10;
}

.tile-icon-wrap {
    width: 40px;
    height: 40px;
    background: rgba(103, 61, 230, 0.06);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(103, 61, 230, 0.12);
}

.landing-tile-title {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.landing-tile-note {
    font-size: 0.875rem;
    color: var(--ink-2);
    line-height: 1.5;
    font-weight: 400;
}

/* Form */
.landing-input {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.1);
}

.landing-input::placeholder {
    color: var(--ink-3);
}

.form-message {
    color: var(--primary);
}

/* Countdown */
.countdown {
    display: flex;
    gap: 1.25rem;
}

.time-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.time {
    font-size: 2.25rem;
    font-weight: 400; /* Un-bolded */
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.time-col .label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-3);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(12px); /* more subtle */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .landing-display { font-size: 1.75rem; letter-spacing: -0.02em; }
    .landing-sub { font-size: 0.875rem; }
    .countdown { gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
    .time { font-size: 1.75rem; }
    form { flex-direction: column; }
    .landing-tile { padding: 1.25rem; border-radius: 16px; }
    .landing-hero { min-height: 80vh; padding-top: 2rem; padding-bottom: 2rem; }
}

@media (max-width: 400px) {
    .time { font-size: 1.5rem; }
    .landing-display { font-size: 1.5rem; }
}

.landing-foot {
    border-top: 1px solid var(--line-soft);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.footer-text {
    font-size: 0.6875rem; /* 11px - super minimal and small */
    color: var(--ink-3);
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* Custom Thin Scrollbar for Desktop */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: var(--line);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--ink-3);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

/* Hide Scrollbar on Touch Devices (Mobile/Tablet) */
@media (pointer: coarse) {
    ::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    html {
        scrollbar-width: none;
    }
}
