:root {
    --bg-color: #ffffff;
    --header-footer-bg: #ffffff;
    --panel-bg: #ffffff;
    --primary-color: #d93b3b;
    --primary-hover: #b92f2f;
    --secondary-color: #1a202c;
    --text-color: #4a5568;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --light-gray-bg: #f7fafc;
    --white: #ffffff;

    /* Panel Specific Colors - can be overridden by JS */
    --panel-bg-color: #f4f4f9;
    --panel-header-footer-bg: #ffffff;
    --panel-panel-bg: #ffffff;
    --panel-primary-color: #d93b3b;
    --panel-secondary-color: #3d3d3d;
    --panel-text-color-light: #ffffff;
    --panel-text-color-dark: #333333;
    --panel-border-color: #e0e0e0;
    --panel-shadow-color: rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

/* Header */
.landing-header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

.button.large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 80px 0;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.subtitle {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

#features a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section */
#hero {
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0;
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

#hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Features Section */
#features {
    background-color: var(--light-gray-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Demo Section */
#demo {
    background-color: #fff;
    padding-bottom: 100px;
}

.demo-container {
    width: 100%;
    max-width: 1100px;
    height: 650px;
    margin: 40px auto 0 auto;
    border: 8px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.demo-container iframe {
    width: 100%;
    height: 100%;
}

/* Contact Section */
#contact {
    background-color: var(--light-gray-bg);
}

.contact-form { /* Alterado de #contact-form para .contact-form */
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input { /* Alterado de #contact-form input para .contact-form input */
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form .form-row { /* Alterado de #contact-form .form-row para .contact-form .form-row */
    display: flex;
    gap: 20px;
}

/* Footer */
.landing-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    height: 3cm;
    min-height: 80px;
    position: relative;
    font-size: 1.2rem;
}

#config-link {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--panel-secondary-color);
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.3s;
}

#config-link:hover {
    opacity: 1;
}

/* --- START OF MERGED panel.css STYLES --- */
#panel-wrapper {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: var(--panel-bg-color);
    color: var(--panel-text-color-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header-style, .panel-footer-style {
    min-height: 80px;
    height: 3cm;
    background-color: var(--panel-header-footer-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px var(--panel-shadow-color);
    z-index: 10;
}

.panel-header-style {
    justify-content: flex-start;
    position: relative;
    gap: 20px;
}

.panel-header-style h1 {
    font-size: 2rem;
    color: var(--panel-secondary-color);
}

#panel-logo {
    height: 70%;
    width: auto;
}

.panel-footer-style {
    position: relative;
    font-size: 1.2rem;
}

.panel-main-style {
    flex-grow: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.panel {
    background-color: var(--panel-panel-bg);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--panel-shadow-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#latest-call {
    flex-grow: 1.2;
    background-color: var(--panel-primary-color);
    color: var(--panel-text-color-light);
    justify-content: space-between;
    text-align: center;
}

#latest-call .panel-header, #latest-call .panel-footer {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    font-weight: 700;
    opacity: 0.9;
}

#current-password {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out;
}

.new-call-animation {
    animation: newCallPulse 1s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes newCallPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

#history, #producing-panel {
    justify-content: flex-start;
    text-align: center;
}

#history .panel-header, #producing-panel .panel-header {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--panel-secondary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--panel-border-color);
    padding-bottom: 15px;
}

.history-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.password-display-small {
    background-color: var(--panel-bg-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--panel-secondary-color);
}

#ad-panel {
    padding: 0;
    overflow: hidden;
}

#ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}