:root {
    --primary: #e67e22;
    --primary-hover: #d35400;
    --secondary: #f39c12;
    --bg-light: #fdfbf9;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo-icon {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a:not(.btn) {
    color: var(--text-dark);
    font-weight: 500;
}

.main-nav a:not(.btn):hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white) !important;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Forms (Iframe Container) */
.form-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.iframe-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    max-width: 800px;
    margin: -80px auto 40px;
    position: relative;
    z-index: 10;
}

.iframe-container iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

/* Sections */
section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.card-icon {
    color: var(--primary);
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

/* Silo & Proximity */
.silo-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin: 40px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.silo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background: var(--bg-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Data / Cadastre block */
.cadastre-block {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cadastre-score {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

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

.footer-links a {
    color: #bdc3c7;
}

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

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    color: #7f8c8d;
}

/* Mobile Sticky Footer CTA */
.sticky-footer-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.full-width {
    display: block;
    width: 100%;
}

/* Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit-popup-overlay.hidden {
    display: none;
}

.exit-popup-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 2rem; }
    .sticky-footer-cta { display: block; }
    body { padding-bottom: 70px; }
    .iframe-container { margin-top: 20px; border-radius: 0; box-shadow: none; padding: 0; }
    .cadastre-block { flex-direction: column; text-align: center; gap: 20px; }
}