/* Root Variables */
:root {
    --primary: #1da1f2;
    --primary-hover: #1991db;
    --dark: #1a1a1a;
    --dark-grey: #383838;
    --light-grey: #f7f7f7;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: #e1e1e1;
    --radius: 12px;
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container-full {
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
}

.container.narrow {
    max-width: 700px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

/* Typography Enhancements */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    font-weight: 600;
}

.highlight {
    color: var(--primary);
}

.subheadline {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 850px;
    margin-bottom: 3rem;
}

/* Navbar */
.navbar {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: transparent;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05rem;
    border: none;
    font-family: 'Lora', serif;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(29, 161, 242, 0.15);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

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

/* Hero Section Rebuild */
.hero-wrapper {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
}

.hero {
    padding: 100px 0 150px;
    text-align: left;
}

.hero h1 {
    color: var(--white);
    max-width: 900px;
}

.hero h1 .highlight {
    color: var(--primary);
}

.subheadline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 850px;
    margin-bottom: 3rem;
}

/* Problem Section (Dark) */
.dark-bg {
    background-color: var(--dark);
    color: var(--white);
}

.problem-section h2 {
    max-width: 600px;
}

.problem-content {
    font-size: 1.25rem;
    color: #b0b0b0;
    max-width: 800px;
}

.text-white {
    color: var(--white);
    font-weight: 600;
}

.section-badge {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-top: 4rem;
}

.solution-text p {
    font-size: 1.35rem;
    line-height: 1.5;
}

.visual-card {
    background: var(--light-grey);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border);
}

/* Thesis Section Styling */
.thesis-box {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.thesis-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.thesis-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.thesis-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

.thesis-list li {
    font-size: 1.1rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    color: var(--text-main);
}

.bullet-point {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.philosophy-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.visual-caption {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Authority Section */
.light-grey-bg {
    background-color: var(--light-grey);
}

.authority-card {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.authority-image {
    flex: 0 0 350px;
}

.authority-image img {
    width: 100%;
    border-radius: 16px;
    filter: grayscale(20%);
}

/* Form Section */
.form-section {
    background-color: var(--white);
}

.form-container {
    padding: 2rem 0;
}

.section-header.center {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-intro {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-top: 1.5rem;
    max-width: 900px;
    line-height: 1.6;
}

/* Solution Section Rebuild */
.solution-section {
    background-color: var(--white);
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 5rem;
    align-items: center;
}

/* Thesis Card Styling */
.thesis-card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.thesis-card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    font-family: 'Lora', serif;
}

.thesis-card-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.thesis-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 2rem;
}

.thesis-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-num {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thesis-list p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-main);
    line-height: 1.5;
}

/* Portfolio Philosophy Stacked Rebuild */
.philosophy-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    justify-content: center;
}

.philosophy-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 2.25rem;
    border-radius: 20px;
    color: var(--white);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.philosophy-card:hover {
    transform: scale(1.02);
}

/* Blue-Scale Palette */
.card-homerun {
    background-color: #1da1f2; /* Light Brand Blue */
}

.card-basehit {
    background-color: #155a8a; /* Mid Blue */
}

.card-fastfail {
    background-color: #00243d; /* Dark Navy */
}

.card-left {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 1.5rem;
}

.card-pct {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.card-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.card-right {
    padding-left: 2rem;
}

.card-desc {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.visual-caption {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    opacity: 0.6;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.form-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.radio-group {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: var(--light-grey);
    border-color: var(--primary);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
}

.radio-option input:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-option input:checked ~ .radio-text {
    font-weight: 700;
    color: var(--primary);
}

.radio-text {
    font-size: 1.1rem;
    color: var(--text-main);
}

.form-footer {
    display: flex;
    gap: 1rem;
}

.form-footer.flex-footer {
    justify-content: space-between;
}

.form-footer.center {
    justify-content: center;
    margin-top: 2rem;
}

/* Success Message */
.success-icon {
    text-align: center;
    margin-bottom: 2rem;
}

#result-message h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#result-message p {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    .solution-grid-split { grid-template-columns: 1fr; gap: 3rem; }
    .authority-card { flex-direction: column; padding: 2.5rem; }
    .authority-image { flex: 0 0 auto; width: 100%; border-radius: 12px; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero { padding: 60px 0; }
    .form-card { padding: 2rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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