/* 
   Nomos Landing Page - Design System "Ordem e Lei" 
   Strict Protocol: No Purple, Sharp Edge Geometry, Dynamic Animation
*/

:root {
    /* Colors - Brand: Ordem e Lei */
    --primary: #2C3E50; /* Slate Grey */
    --secondary: #1A1A1A; /* Deep Charcoal */
    --accent: #27AE60; /* Success Green */
    --accent-gold: #D4AF37; /* Trust Gold */
    --text-main: #F8F9FA;
    --text-muted: #A0AEC0;
    --bg-main: #0F172A;
    --bg-alt: #1E293B;
    --border: #334155;
    
    /* Geometry */
    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 4px;
    
    /* Spacing */
    --container: 1400px;
    --gap: 3rem;
    
    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.4s;
}

[data-theme="light"] {
    --bg-main: #FFFFFF;
    --bg-alt: #F8F9FA;
    --text-main: #1A1A1A;
    --text-muted: #4A5568;
    --border: #E2E8F0;
    --primary: #1A1A1A;
}

/* Reset & Base */
* { margin:0; padding:0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
}

a { text-decoration: none; color: inherit; transition: var(--duration) var(--ease); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(39, 174, 96, 0.4); }

.btn-outline { background: transparent; border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--accent); color: var(--accent); }

.btn-large { padding: 1.25rem 2.5rem; font-size: 1rem; }
.btn-cta { background: var(--accent-gold); color: #1A1A1A; }
.btn-cta:hover { background: #E5C158; transform: scale(1.02); }

/* Header */
.main-header {
    height: 80px;
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
    opacity: 0.95;
}

/* Icons Fix */
.btn-icon svg { width: 24px; height: 24px; display: none; fill: var(--accent-gold); filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
[data-theme="dark"] .moon { display: block; }
[data-theme="light"] .sun { display: block; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s var(--ease);
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-wrapper { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 1rem; }
.logo svg { animation: logo-pulse 3s infinite ease-in-out; }
@keyframes logo-pulse {
    0% { filter: drop-shadow(0 0 0px var(--accent-gold)); }
    50% { filter: drop-shadow(0 0 5px var(--accent-gold)); }
    100% { filter: drop-shadow(0 0 0px var(--accent-gold)); }
}
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 3rem; }

/* Mobile Navigation */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s var(--ease);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* Hero - Asymmetric Tension */
.hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(44, 62, 80, 0.1), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.small-text { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

.hero-visual { position: relative; }
.hero-card-stack { position: relative; width: 100%; height: 400px; }

.card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: absolute;
}

.card-1 { width: 320px; top: 0; left: 0; z-index: 2; transform: rotate(-5deg); }
.card-2 { width: 280px; bottom: 0; right: 0; z-index: 1; transform: rotate(10deg); border-color: var(--accent-gold); }

.skeleton { background: var(--border); height: 12px; border-radius: 2px; margin-bottom: 10px; }
.skeleton.title { width: 60%; height: 20px; }
.skeleton.lines { width: 100%; }
.skeleton.line-short { width: 40%; }

.badge-new { 
    background: var(--accent-gold); color: black; font-size: 10px; font-weight: 800; 
    padding: 2px 6px; display: inline-block; margin-bottom: 10px;
}

/* Scroll Animation Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dores (The "UFA!") */
.section-padding { padding: 100px 0; }
.bg-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 3rem; margin-bottom: 1rem; }

.dores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dor-card {
    background: var(--bg-alt);
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    transition: var(--duration) var(--ease);
}

.dor-card:hover { 
    border-color: var(--accent-gold); 
    transform: translateY(-5px);
}

.icon-wrapper { font-size: 2.5rem; margin-bottom: 1.5rem; }
.dor-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.dor-card p { color: var(--text-muted); }

/* Showcase */
.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 100px;
}

.showcase-item.reverse { direction: rtl; }
.showcase-item.reverse .showcase-content { direction: ltr; }

.showcase-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li { 
    padding-left: 1.5rem; margin-bottom: 0.5rem; position: relative; 
    color: var(--text-muted);
}
.feature-list li::before {
    content: '→'; position: absolute; left: 0; color: var(--accent-gold); font-weight: bold;
}

.showcase-visual {
    height: 400px; background: var(--secondary); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; position: relative;
    padding: 1rem;
}

/* Calendar Mockup Detail */
.calendar-mockup {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
    background: var(--bg-main) !important;
}

.calendar-mockup::before {
    content: 'Março 2026'; grid-column: span 7; padding: 10px; font-weight: bold;
    border-bottom: 1px solid var(--border); margin-bottom: 10px; color: var(--accent-gold);
}

.cal-day { 
    height: 40px; border: 1px solid var(--border); border-radius: 2px;
    display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.cal-day.event { background: rgba(39, 174, 96, 0.2); border-color: var(--accent); position: relative; }
.cal-day.event::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

/* Files Mockup Detail */
.files-mockup {
    display: flex; flex-direction: column; gap: 10px; background: var(--bg-main) !important;
}
.file-row {
    display: flex; align-items: center; gap: 1rem; padding: 10px; 
    border-bottom: 1px solid var(--border);
}
.file-icon { width: 30px; height: 35px; background: var(--primary); border-radius: 2px; }
.file-name { height: 10px; background: var(--border); flex: 1; }

/* Pricing */
.pricing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem;
}

.switch {
  position: relative; display: inline-block; width: 60px; height: 34px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border); transition: .4s;
}

.slider:before {
  position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px;
  background-color: white; transition: .4s;
}

input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.badge-saving { background: rgba(39, 174, 96, 0.2); color: var(--accent); padding: 2px 8px; font-size: 10px; font-weight: bold; border-radius: 10px; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem;
}

.price-card {
    background: var(--bg-alt); border: 1px solid var(--border); padding: 3rem 2rem; 
    display: flex; flex-direction: column; transition: var(--duration) var(--ease);
}

.price-card.featured { 
    border-color: var(--accent-gold); 
    transform: scale(1.05); 
    z-index: 10; 
    background: var(--bg-main);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}
.price-card h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.price-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; }
.price { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; display: flex; align-items: baseline; }
.price .period { font-size: 0.875rem; color: var(--text-muted); font-weight: 400; margin-left: 0.5rem; }

.price-features { list-style: none; margin-bottom: auto; padding-bottom: 2rem; }
.price-features li { margin-bottom: 1rem; color: var(--text-muted); }
.price-features li strong { color: var(--text-main); }

/* Footer */
.main-footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; width: max-content; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-muted); }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-main); margin: 10% auto; padding: 3rem; border: 1px solid var(--accent-gold);
    width: 450px; position: relative; animation: modalAnim 0.5s var(--ease);
}

@keyframes modalAnim {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close { position: absolute; right: 1.5rem; top: 1rem; font-size: 2rem; cursor: pointer; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.form-group input { 
    width: 100%; padding: 0.75rem; background: var(--bg-alt); border: 1px solid var(--border); 
    color: var(--text-main); border-radius: var(--radius-md);
}

.btn-full { width: 100%; justify-content: center; }

.hidden { display: none; }
.demo-result { text-align: center; margin-top: 1.5rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--accent); }


/* Code Showcase Style */
.code-showcase {
    background: #0D1117;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #e6edf3;
    overflow-x: auto;
    text-align: left;
    max-width: 100%;
}
.code-showcase code { color: #79c0ff; }
.code-showcase pre { margin: 0; white-space: pre-wrap; }

.shadow-premium { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 3.5rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .dores-grid, .pricing-grid { grid-template-columns: 1fr; }
    .showcase-item { grid-template-columns: 1fr; gap: 2rem; }
}
/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.dor-card:hover, .price-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border-color: var(--accent-gold);
}

.price-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.showcase-visual { transition: transform 0.6s var(--ease); }
.showcase-item:hover .showcase-visual { transform: scale(1.03) rotate(1deg); }
.showcase-item:nth-child(even):hover .showcase-visual { transform: scale(1.03) rotate(-1deg); }
