/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: #1F2937; background: #F9FAFB; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-weight: 600; }
a { text-decoration: none; color: inherit; }

/* Header */
header { background: #FFFFFF; border-bottom: 1px solid #E5E7EB; padding: 1rem 0; position: sticky; top: 0; z-index: 10; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: #10B981; }
.logo img { height: 40px; } /* For future logo image */
nav a { margin-left: 2rem; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #10B981; }

/* Hero */
.hero { padding: 4rem 0; text-align: center; background: #FFFFFF; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: #1F2937; }
.subheading { font-size: 1.25rem; margin-bottom: 2rem; color: #6B7280; max-width: 700px; margin-left: auto; margin-right: auto; }
#textInput { width: 100%; max-width: 800px; min-height: 200px; padding: 1rem; border: 2px solid #D1D5DB; border-radius: 8px; font-family: inherit; font-size: 1rem; resize: vertical; margin-bottom: 1rem; }
#validateBtn { background: #10B981; color: white; padding: 1rem 2rem; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; position: relative; }
#validateBtn:hover { background: #059669; }
#validateBtn.loading { background: #6B7280; cursor: not-allowed; }
.note { margin-top: 1rem; color: #6B7280; font-size: 0.95rem; }

/* Features */
.features { padding: 4rem 0; background: #F9FAFB; }
.features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { text-align: center; padding: 1.5rem; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.icon { font-size: 2rem; margin-bottom: 1rem; }
.feature h3 { margin-bottom: 0.5rem; color: #1F2937; }

/* How It Works */
.how-it-works { padding: 4rem 0; text-align: center; background: #FFFFFF; }
.how-it-works h2 { font-size: 2.5rem; margin-bottom: 3rem; }
.steps { display: flex; justify-content: space-around; max-width: 800px; margin: 0 auto; flex-wrap: wrap; gap: 2rem; }
.step { flex: 1; min-width: 200px; }
.step-icon { background: #10B981; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto 1rem; }

/* Result Page */
.result-hero { padding: 4rem 0; text-align: center; background: #FFFFFF; }
.result-hero h1 { font-size: 2.5rem; margin-bottom: 2rem; }
.score-display { margin-bottom: 3rem; }
.score-percent { font-size: 4rem; font-weight: 700; color: #1F2937; display: block; }
.score-bar { height: 12px; background: linear-gradient(to right, #10B981, #FCD34D, #EF4444); border-radius: 6px; margin-top: 1rem; }
.score-bar.low-ai { background: #10B981; }
.score-bar.medium-ai { background: #FCD34D; }
.score-bar.high-ai { background: #EF4444; }
.highlighted-text { background: #F9FAFB; padding: 2rem; border-radius: 8px; text-align: left; max-width: 900px; margin: 0 auto 2rem; }
.text-container { font-size: 1.1rem; line-height: 1.8; }
.ai-low { background: #10B981; color: white; padding: 2px 4px; border-radius: 4px; }
.ai-medium { background: #FCD34D; padding: 2px 4px; border-radius: 4px; }
.ai-high { background: #EF4444; color: white; padding: 2px 4px; border-radius: 4px; }
.btn { display: inline-block; background: #10B981; color: white; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; margin-top: 1rem; }

/* About/Policy Pages */
.about, .policy { padding: 4rem 0; }
.about h1, .policy h1 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
.policy h2 { margin: 1.5rem 0 1rem; color: #10B981; }

/* Footer */
footer { background: #1F2937; color: white; padding: 2rem 0; text-align: center; }
footer nav a { margin: 0 1rem; color: #D1D5DB; }

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .steps { flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; }
    .score-percent { font-size: 3rem; }
}