/* ==========================================================================
   Design System & Variable Declarations
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #D97059;       /* Terracota Acolhedor */
    --color-primary-dark: #C15944;
    --color-primary-light: #F6E2DD;
    --color-secondary: #E8A845;     /* Amarelo Mostarda */
    --color-secondary-light: #FCF4E7;
    --color-accent: #7B9A8A;        /* Verde Sálvia */
    --color-accent-light: #EBF1EE;
    --color-bg-light: #FCF8F2;      /* Creme Suave */
    --color-bg-white: #FFFDFB;
    --color-text-main: #2C353F;     /* Azul Charcoal Escuro */
    --color-text-muted: #5C6672;
    --color-border: #EADBCC;
    --color-shadow: rgba(44, 53, 63, 0.08);
    --color-shadow-hover: rgba(44, 53, 63, 0.15);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing & Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Resets & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--color-text-main);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--color-text-main);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--color-text-main);
}

p {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--color-text-muted);
}

/* Common Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.section-subtitle {
    margin-top: 16px;
    font-size: 1.2rem;
}

.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-secondary);
    opacity: 0.3;
    z-index: -1;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(217, 112, 89, 0.3);
}

.btn-secondary {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(123, 154, 138, 0.2);
}

.btn-text {
    background: none;
    box-shadow: none;
    color: var(--color-text-muted);
}

.btn-text:hover {
    color: var(--color-text-main);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(252, 248, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px var(--color-shadow);
}

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

.main-header.scrolled .header-container {
    height: 64px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-muted);
}

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

.nav-btn {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(217, 112, 89, 0.15);
}

.nav-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(217, 112, 89, 0.25);
}

/* Hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg-white);
    z-index: 200;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-close {
    font-size: 2.2rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.drawer-link:hover {
    color: var(--color-primary);
}

.drawer-btn {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 14px;
    text-align: center;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 16px;
    box-shadow: 0 4px 10px rgba(217, 112, 89, 0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 160px 0 96px 0;
    position: relative;
    background: radial-gradient(circle at 80% 20%, var(--color-secondary-light) 0%, transparent 60%);
    overflow: hidden;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating Mascots Layout */
.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-mascot-card {
    position: absolute;
    width: 280px;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 15px 35px var(--color-shadow);
    left: 10%;
    top: 10%;
    transform: rotate(-3deg);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border: 1px solid var(--color-border);
}

.mascot-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.card-caption {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-main);
}

.sub-mascot-card {
    position: absolute;
    width: 200px;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 10px 25px var(--color-shadow);
    right: 10%;
    bottom: 15%;
    transform: rotate(6deg);
    animation: float-sub 5s ease-in-out infinite alternate;
    z-index: 1;
    border: 1px solid var(--color-border);
}

.mascot-img-sub {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Shapes Background */
.hero-bg-shapes .shape {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--color-primary-light);
    top: 10%;
    left: -100px;
    opacity: 0.5;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: var(--color-accent-light);
    bottom: -100px;
    right: -100px;
    opacity: 0.6;
}

/* Float Keyframes */
@keyframes float {
    0% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(-3deg); }
}

@keyframes float-sub {
    0% { transform: translateY(0px) rotate(6deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
    100% { transform: translateY(0px) rotate(6deg); }
}

/* ==========================================================================
   Concept Section
   ========================================================================== */
.concept-section {
    padding: 96px 0;
    background-color: var(--color-bg-white);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.concept-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.concept-card:hover {
    transform: translateY(-8px);
    background-color: var(--color-bg-white);
    border-color: var(--color-border);
    box-shadow: 0 15px 30px var(--color-shadow-hover);
}

.icon-box {
    width: 64px;
    height: 64px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.concept-card:hover .icon-box {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: scale(1.05);
}

.concept-card h3 {
    margin-bottom: 16px;
    color: var(--color-text-main);
}

/* ==========================================================================
   Process/Timeline Section
   ========================================================================== */
.process-section {
    padding: 96px 0;
    background-color: var(--color-bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 48px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 56px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -48px;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px var(--color-shadow);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-number {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.timeline-content {
    background-color: var(--color-bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px var(--color-shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px var(--color-shadow-hover);
}

.timeline-content h3 {
    margin-bottom: 12px;
    color: var(--color-text-main);
}

/* ==========================================================================
   Simulator Section
   ========================================================================== */
.simulator-section {
    padding: 96px 0;
    background-color: var(--color-bg-white);
}

.simulator-widget {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 35px var(--color-shadow);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.sim-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sim-step-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    transition: var(--transition-smooth);
}

.sim-step-dot.active {
    background-color: var(--color-primary);
    width: 24px;
}

.sim-step-dot.completed {
    background-color: var(--color-accent);
}

/* Slide visibility rules */
.sim-slide {
    display: none;
}

.sim-slide.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.sim-question {
    text-align: center;
    margin-bottom: 32px;
    color: var(--color-text-main);
}

.sim-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sim-option-btn {
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
    text-align: left;
}

.sim-option-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.sim-option-btn.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: 0 4px 12px rgba(217, 112, 89, 0.2);
}

.color-preview {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Results Layout */
.result-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
}

.result-image-wrapper {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 8px 24px var(--color-shadow);
    border: 1px solid var(--color-border);
    position: relative;
}

.result-mascot {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.result-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.result-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.result-text h3 {
    margin-bottom: 16px;
}

.result-story-text {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.result-actions {
    display: flex;
    gap: 12px;
}

/* Navigation layout */
.sim-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

/* Keyframes for internal fade */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Carousel Gallery Section
   ========================================================================== */
.gallery-section {
    padding: 96px 0;
    background-color: var(--color-bg-light);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px var(--color-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-card {
    background-color: var(--color-bg-white);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.carousel-image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-info-box {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-info-box h3 {
    margin-bottom: 16px;
    color: var(--color-text-main);
}

.carousel-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-main);
    border-left: 4px solid var(--color-primary);
    padding-left: 16px;
    margin-bottom: 24px;
}

.carousel-story-preview {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.carousel-story-preview strong {
    color: var(--color-text-main);
    display: block;
    margin-bottom: 6px;
}

/* Nav Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 1.3rem;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--color-shadow);
    z-index: 10;
    transition: var(--transition-smooth);
}

.carousel-nav-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

.carousel-nav-btn.prev {
    left: -28px;
}

.carousel-nav-btn.next {
    right: -28px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--color-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-indicators .indicator.active {
    background-color: var(--color-primary);
    width: 24px;
}

/* ==========================================================================
   Waitlist Signup Section
   ========================================================================== */
.signup-section {
    padding: 96px 0;
    background-color: var(--color-bg-white);
}

.signup-wrapper {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 35px var(--color-shadow);
}

.signup-details h2 {
    margin-bottom: 16px;
}

.signup-details p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.signup-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-benefits li {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.signup-form-container {
    background-color: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--color-shadow);
    border: 1px solid var(--color-border);
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signup-form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
    background-color: var(--color-bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Success Message overlay */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

.success-message.active {
    display: flex;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

.success-message h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
}

.success-message p {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* ==========================================================================
   About Fabiana Section
   ========================================================================== */
.about-section {
    padding: 96px 0;
    background-color: var(--color-bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.author-frame {
    position: relative;
    width: 320px;
    height: 320px;
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px var(--color-shadow);
    border: 3px solid var(--color-bg-white);
    display: block;
}

.author-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary-light) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px var(--color-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-bg-white);
}

.author-avatar-placeholder span {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.8;
}

.author-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 12px rgba(217, 112, 89, 0.25);
    border: 2px solid var(--color-bg-white);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-bio {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.author-quote {
    background-color: var(--color-bg-white);
    border-left: 4px solid var(--color-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--color-shadow);
    margin-top: 16px;
}

.author-quote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.author-quote span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-text-main);
    color: var(--color-bg-white);
    padding: 64px 0 32px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary-light);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary-light);
    transform: translateX(2px);
}

.footer-copyright {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.intellectual-property {
    font-size: 0.85rem;
    max-width: 600px;
    color: rgba(255,255,255,0.4);
}

.intellectual-property strong {
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   Animations Helper & Dynamic Interaction
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content .fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.hero-content .fade-in-up:nth-child(2) { animation-delay: 0.3s; }
.hero-content .fade-in-up:nth-child(3) { animation-delay: 0.5s; }
.hero-content .fade-in-up:nth-child(4) { animation-delay: 0.7s; }
.hero-visual.fade-in-up { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Fade-in on Scroll Trigger */
.fade-in-trigger {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sparkle Effect for Simulator Result */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.sparkle-particle {
    position: absolute;
    border-radius: var(--radius-full);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0;
    transform: scale(0);
    animation: sparkle-burst 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes sparkle-burst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    30% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(180deg) translateY(-20px);
    }
}

/* ==========================================================================
   Responsive Media Queries (Mobile First)
   ========================================================================== */

/* Up to Tablet (Max 992px) */
@media (max-width: 992px) {
    .main-header {
        padding: 8px 0;
    }
    
    .main-nav {
        display: none; /* Hide standard nav, use burger menu */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 380px;
        margin-top: 24px;
    }

    .main-mascot-card {
        width: 230px;
        left: 10%;
    }
    
    .mascot-img {
        height: 230px;
    }

    .sub-mascot-card {
        width: 160px;
        right: 10%;
        bottom: 5%;
    }

    .mascot-img-sub {
        height: 160px;
    }

    .concept-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .simulator-widget {
        padding: 32px 20px;
    }

    .sim-options-grid {
        grid-template-columns: 1fr;
    }

    .result-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .result-text {
        align-items: center;
    }

    .carousel-card {
        grid-template-columns: 1fr;
    }

    .carousel-image-box img {
        height: 280px;
    }

    .carousel-info-box {
        padding: 32px 24px;
    }

    .carousel-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .carousel-nav-btn.prev {
        left: -8px;
    }

    .carousel-nav-btn.next {
        right: -8px;
    }

    .signup-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .author-frame {
        width: 260px;
        height: 260px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Small Screens (Max 480px) */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-visual {
        height: 300px;
    }

    .main-mascot-card {
        width: 180px;
        left: 5%;
    }

    .mascot-img {
        height: 180px;
    }

    .sub-mascot-card {
        width: 130px;
        right: 5%;
        bottom: 2%;
    }

    .mascot-img-sub {
        height: 130px;
    }
}
