/* 
   Rentrui /host — The Landlord Workflow
   Custom Category-Defining Dark-Mode Stylesheet
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500;600&family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    /* Brand Colors (Tailwind/Stripe Dark Caliber) */
    --bg-primary: #0F172A;       /* Deep navy */
    --bg-secondary: #020817;     /* Footer background */
    --surface-card: #1E293B;     /* Card surface */
    --border-color: #334155;     /* Slated border */
    
    --text-primary: #E2E8F0;     /* Light slate */
    --text-secondary: #94A3B8;   /* Muted slate */
    --text-white: #FFFFFF;
    
    --accent: #10B981;           /* Emerald green */
    --accent-hover: #059669;
    --accent-light: rgba(16, 185, 129, 0.1);
    
    --error: #F87171;
    --warning: #F59E0B;          /* Amber */

    /* Spacing & Sizes */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);

    --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-standard: 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

/* SVG Noise Texture Overlay on Hero */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
}

/* Type Scale Rules */
h1 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-white);
}

h2 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

h3 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-white);
}

.body-large {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
}

body, p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.caption-label {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.mono-num {
    font-family: 'DM Mono', monospace;
    font-weight: 600;
}

/* Container & Sections */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-standard);
}

.navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-white);
    padding: 14px 28px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Hamburger mobile button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    max-width: 540px;
    z-index: 2;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* Compare problem grid */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 48px;
}

.compare-column {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.compare-row:last-child {
    border-bottom: none;
}

/* Steps timeline horizontal */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Split feature sections */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-visual {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
}

/* Comparison Table style */
.comp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 48px;
    background-color: var(--surface-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comp-table th, .comp-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comp-table th {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comp-table tr:hover td {
    background-color: rgba(30, 41, 59, 0.6);
}

.comp-table td.rentrui-col, .comp-table th.rentrui-col {
    background-color: rgba(16, 185, 129, 0.04);
    border-left: 2px solid var(--accent);
}

/* Pricing plan cards */
.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* Interactive Accordions for FAQ */
.accordion-wrapper {
    max-width: 720px;
    margin: 48px auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 22px;
    color: var(--accent);
    transition: var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-standard) ease-in-out;
}

.faq-answer p {
    padding: 0 0 24px 0;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer structure */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Product mockup container inside hero */
.hero-mockup-frame {
    background-color: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero .container, .compare-grid, .feature-split, .steps-grid, .pricing-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    .nav-links, .nav-cta {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}
