/* ================================
   EVRAK OLUŞTURUCU — Clean & Professional Design
   ================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors - Clean Light Theme */
    --bg-primary: #f8fafc;
    /* Very soft slate/gray */
    --bg-secondary: #ffffff;
    /* Pure white for cards */
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --text-primary: #0f172a;
    /* Almost black */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --accent-primary: #2563eb;
    /* Trustworthy Blue */
    --accent-hover: #1d4ed8;

    --success: #10b981;
    --error: #ef4444;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.2s;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================================
   HEADER / NAVIGATION
   ================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.4rem;
}

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

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

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

/* ================================
   HERO
   ================================ */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
    background: var(--bg-primary);
}

.hero-content {
    max-width: 700px;
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--accent-primary);
    /* Removed gradient, using solid trusted blue */
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-back {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    margin-bottom: var(--space-xl);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

/* ================================
   HOW IT WORKS & TEMPLATES
   ================================ */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-3xl);
}

#how-it-works,
#templates {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    /* Alternating background color */
}

#templates {
    background: var(--bg-primary);
}

.steps-grid,
.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.step-card,
.template-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    transition: all var(--duration) var(--ease);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.step-card {
    text-align: center;
}

.template-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.step-icon,
.template-icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.step-card h3,
.template-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step-card p,
.template-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.template-card p {
    margin-bottom: var(--space-lg);
}

.step-number {
    display: none;
    /* Removed the giant faint numbers, they look tacky */
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* ================================
   FORM SECTION
   ================================ */
#form-section {
    padding: calc(70px + var(--space-3xl)) 0 var(--space-4xl);
    background: var(--bg-primary);
    min-height: 100vh;
}

.form-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.form-icon {
    font-size: 2.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.form-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

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

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-group input,
.field-group textarea,
.field-group select {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    outline: none;
    transition: all var(--duration) var(--ease);
    width: 100%;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: var(--text-muted);
}

.field-group textarea {
    min-height: 120px;
    resize: vertical;
}

.field-error {
    font-size: 0.8rem;
    color: var(--error);
    display: none;
    margin-top: -4px;
}

.field-group.has-error input,
.field-group.has-error textarea {
    border-color: var(--error);
}

.field-group.has-error .field-error {
    display: block;
}

.btn-generate {
    width: 100%;
    justify-content: center;
    padding: 18px;
    font-size: 1.1rem;
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================
   FAQ & FOOTER
   ================================ */
#faq {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-chevron {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

#site-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
    text-align: center;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.footer-text,
.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-text {
    margin-bottom: var(--space-xs);
}

/* ================================
   TOAST & ANIMATIONS
   ================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 2000;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--text-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s var(--ease) forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 900px) {

    .steps-grid,
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .steps-grid,
    .templates-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
        border-top: none;
    }

    .form-wrapper {
        padding: var(--space-xl);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
    }
}