/* ==========================================
   AI Tech Age - Main Stylesheet
   ========================================== */

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

:root {
    --primary-color: #f2c00c;
    --dark-color: #5e5e5e;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-gray: #6b6b6b;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition-fast: 180ms ease;
    --transition-normal: 300ms ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

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

a:hover {
    color: #d4a80a;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: #d4a80a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(242, 192, 12, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-text:hover {
    background: rgba(242, 192, 12, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

.logo-text {
    color: var(--text-dark);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
}

/* Examples Section */
.examples {
    padding: 5rem 0;
    background: var(--bg-white);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.example-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.example-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.example-meta {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.example-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.example-details.active {
    display: block;
}

.example-details h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.example-details ul {
    list-style-position: inside;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-dark);
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #d4a80a 100%);
    color: var(--text-dark);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #b0b0b0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #b0b0b0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* Page Header */
.page-header {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-main h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-main h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.content-main ul,
.content-main ol {
    margin-bottom: 1.5rem;
}

.content-main li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.principle-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.principle-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--primary-color);
}

.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.cta-box h3 {
    margin-top: 0;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.form-response {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.info-icon {
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-gray);
    margin: 0;
}

.info-card a {
    color: var(--primary-color);
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: 8px;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

/* Legal Content */
.legal-content {
    line-height: 1.8;
}

.legal-content .intro-text {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.disclaimer-notice {
    padding: 1.5rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #856404;
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Tool Page Styles */
.tool-header {
    padding: 3rem 0;
    background: var(--bg-light);
    text-align: center;
}

.tool-intro {
    max-width: 800px;
    margin: 1rem auto 0;
    font-size: 1.125rem;
    color: var(--text-gray);
}

.tool-section {
    padding: 4rem 0;
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tool-input {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.blueprint-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tool-output {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.output-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-gray);
}

/* Blueprint Content */
.blueprint-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blueprint-section {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.blueprint-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.diagram-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tech-item {
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.tech-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tech-item p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

.prompt-library {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-item {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prompt-title {
    font-weight: 600;
    color: var(--text-dark);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: #d4a80a;
    transform: translateY(-2px);
}

.prompt-text {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 6px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-dark);
    margin: 0;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-phase {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
}

.checklist-phase h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.checklist-items {
    list-style: none;
    margin: 0;
}

.checklist-items li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
    border-radius: 6px;
    position: relative;
    padding-left: 2.5rem;
}

.checklist-items li::before {
    content: '□';
    position: absolute;
    left: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.estimates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.estimate-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    text-align: center;
}

.estimate-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.estimate-label {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .output-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }
    
    .steps-grid,
    .examples-grid,
    .testimonials-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}