/* TinySite — Design System (matches TinyTax brand) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Primary */
    --green: #11B981;
    --green-50: #ECFDF5;
    --green-100: #D1FAE5;
    --green-200: #A7F3D0;
    --green-400: #34D399;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065F46;

    /* Navy */
    --navy: #1f2744;
    --navy-50: #F8FAFC;
    --navy-100: #F1F5F9;
    --navy-200: #E2E8F0;
    --navy-300: #CBD5E1;
    --navy-400: #94A3B8;
    --navy-500: #64748B;
    --navy-600: #475569;
    --navy-700: #334155;
    --navy-800: #1E293B;

    /* Warm neutrals */
    --warm-50: #FAFAF9;
    --warm-100: #F5F5F4;
    --warm-200: #E7E5E4;
    --warm-300: #D6D3D1;
    --warm-500: #78716C;

    /* Semantic */
    --error: #E57373;
    --error-light: #FEF2F2;
    --warning: #F59E0B;
    --info: #60A5FA;

    /* Layout */
    --max-width: 1080px;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--green);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    background: white;
    border-bottom: 1px solid var(--navy-200);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--navy-600);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--navy);
}

nav .btn-nav {
    background: var(--green);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.15s ease, transform 0.1s ease;
}

nav .btn-nav:hover {
    background: var(--green-600);
    color: white;
    transform: translateY(-1px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    text-align: center;
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, var(--green-50) 0%, white 100%);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--navy-500);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================================
   Domain Search Bar
   ============================================================ */

.domain-search-form {
    max-width: 560px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    border: 2px solid var(--navy-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(17, 185, 129, 0.15), var(--shadow-lg);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--navy);
    outline: none;
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--navy-400);
}

.search-bar button {
    padding: 1rem 2rem;
    background: var(--green);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-bar button:hover {
    background: var(--green-600);
}

/* ============================================================
   Features
   ============================================================ */

.features {
    padding: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature {
    padding: 2rem;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-lg);
    background: white;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.feature:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--green-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--navy-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   Search Results
   ============================================================ */

.search-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 0;
}

.search-page h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.search-results {
    margin-top: 2rem;
}

.search-results h2 {
    font-size: 0.85rem;
    color: var(--navy-400);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.domain-list {
    margin-bottom: 2rem;
}

.domain-result {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid var(--navy-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    gap: 1rem;
    transition: box-shadow 0.15s ease;
}

.domain-result.available {
    border-color: var(--green-200);
    background: var(--green-50);
}

.domain-result.available:hover {
    box-shadow: var(--shadow-sm);
}

.domain-result.unavailable {
    opacity: 0.5;
}

.domain-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--navy);
}

.domain-price {
    font-weight: 600;
    color: var(--navy-600);
    font-size: 0.95rem;
}

.domain-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.available .domain-status {
    background: var(--green);
    color: white;
}

.unavailable .domain-status {
    background: var(--navy-200);
    color: var(--navy-500);
}

.error-message {
    color: var(--error);
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* ============================================================
   Dashboard
   ============================================================ */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--navy-200);
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.dashboard-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy-600);
}

.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.company-card {
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: white;
    transition: box-shadow 0.15s ease;
}

.company-card:hover {
    box-shadow: var(--shadow);
}

.company-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.company-number {
    color: var(--navy-400);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.company-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: var(--green-600);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--navy-300);
    border-radius: var(--radius);
    color: var(--navy-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
    background: var(--navy-50);
    border-color: var(--navy-400);
    color: var(--navy);
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--green);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.btn-small:hover {
    background: var(--green-600);
    color: white;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--navy-200);
    padding: 2rem 0;
    text-align: center;
    color: var(--navy-400);
    font-size: 0.875rem;
    margin-top: auto;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .search-bar button {
        border-top: 1px solid var(--navy-200);
    }

    nav {
        gap: 0.75rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
