/* STAN AI Design System - Turkish Property Management */

/* CSS Custom Properties from design.json */
:root {
    /* Colors */
    --color-bg-page: #F6F8FF;
    --color-bg-card: #FFFFFF;
    --color-bg-muted: #F3F6FF;
    --color-text-primary: #0F172A;
    --color-text-secondary: #475569;
    --color-text-accent: #3B82F6;
    --color-text-on-primary: #FFFFFF;
    --color-border: #E2E8F0;
    --color-shadow: rgba(2, 6, 23, 0.08);

    /* Gradients */
    --gradient-hero-blob: radial-gradient(40% 50% at 20% 20%, #7DD3FC 0%, rgba(125, 211, 252, 0) 60%),
        radial-gradient(35% 45% at 80% 30%, #A7F3D0 0%, rgba(167, 243, 208, 0) 60%),
        radial-gradient(30% 40% at 40% 80%, #60A5FA 0%, rgba(96, 165, 250, 0) 60%), #1E293B;
    --gradient-cta-band: radial-gradient(45% 55% at 20% 30%, #7DD3FC 0%, rgba(125, 211, 252, 0) 60%),
        radial-gradient(35% 45% at 80% 70%, #60A5FA 0%, rgba(96, 165, 250, 0) 60%), #1E293B;
    --gradient-button-primary: linear-gradient(180deg, #EEF2FF 0%, #E0EAFF 100%);

    /* Spacing */
    --section-padding-y: 5rem;
    --section-padding-y-md: 2rem;
    --gap-lg: 3rem;
    --gap-md: 2rem;
    --gap-sm: 1rem;

    /* Radii */
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-card: 0 10px 30px rgba(2, 6, 23, 0.08);

    /* Typography */
    --font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-page);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    h2 {
        font-size: 3rem;
    }
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    h3 {
        font-size: 1.875rem;
    }
}

.text-lead {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .text-lead {
        font-size: 1.25rem;
    }
}

.text-small {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--color-border);
    height: 72px;
}

.nav {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
}

.nav-menu {
    display: none;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-button-primary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--color-bg-muted);
    color: var(--color-text-primary);
}

.btn-accent {
    background: var(--color-text-accent);
    color: white;
    border: 1px solid var(--color-text-accent);
}

.btn-accent:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-white {
    background: white;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.card-dark {
    background: #1e293b;
    color: white;
    border: 1px solid transparent;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--gap-md);
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-cols-2-md {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-3-lg {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hero Section - Simple Layout */
.hero-simple {
    background: var(--color-bg-page);
    padding: var(--section-padding-y-md) 0;
    color: var(--color-text-primary);
}

.hero-simple-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
}

.hero-simple-grid h1 {
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 1024px) {
    .hero-simple-grid {
        grid-template-columns: 1fr 400px;
        gap: 3rem;
        padding-top: 3rem;
    }
}

.hero-content h1 {
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

.hero-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    height: 100px;
    margin-bottom: 2rem;
    display: none;
}

@media (min-width: 768px) {
    .hero-visual {
        display: block;
    }
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
}

.floating-icon.building {
    top: 10px;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon.management {
    top: 30px;
    right: 30%;
    animation-delay: 1s;
}

.floating-icon.money {
    top: 50px;
    left: 60%;
    animation-delay: 2s;
}

.floating-icon.contact {
    top: 10px;
    left: 15%;
    animation-delay: 0s;
}

.floating-icon.support {
    top: 40px;
    right: 25%;
    animation-delay: 1.5s;
}

.floating-icon.clock {
    top: 20px;
    left: 55%;
    animation-delay: 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.feature-check {
    font-size: 1rem;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.simple-form .form-group input,
.simple-form .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background: white;
    box-sizing: border-box;
}

.simple-form .form-group input:focus,
.simple-form .form-group select:focus {
    outline: none;
    border-color: var(--color-text-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Remove border from phone input since wrapper has border */
.simple-form .form-group .phone-input-wrapper input {
    border: none;
    box-shadow: none;
}

.simple-form .form-group .phone-input-wrapper input:focus {
    border: none;
    box-shadow: none;
}

/* Phone Input Styling */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-text-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.phone-prefix {
    padding: 12px 16px 12px 16px;
    background: #f8f9fa;
    border-right: 1px solid var(--color-border);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.phone-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
}

.phone-input:focus {
    outline: none;
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-form {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-form.btn-primary {
    background: var(--color-text-accent);
    color: white;
    flex: 1;
    width: 100%;
}

.btn-form.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-form.btn-secondary {
    background: #dc3545;
    color: white;
}

.btn-form.btn-secondary:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    justify-items: stretch;
    /* equal row heights to avoid stagger */
    grid-auto-rows: minmax(280px, auto);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.feature-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin: 0;
}

/* Hero Section (original) */
.hero {
    padding: 3rem 0 4rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 4rem 0 6rem;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

.hero-card {
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    color: white;
    box-shadow: var(--shadow-card);
    background: var(--gradient-hero-blob);
    position: relative;
}

@media (min-width: 768px) {
    .hero-card {
        padding: 3.5rem;
    }
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-avatars {
    display: flex;
    margin-left: -0.5rem;
}

.hero-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -0.5rem;
}

.hero-title {
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-image-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: white;
    position: relative;
}

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

.hero-chip {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .hero-chip {
        left: auto;
        right: 1rem;
        transform: none;
    }
}

/* Section Spacing */
.section {
    padding: var(--section-padding-y) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--section-padding-y-md) 0;
    }
}

/* CTA Sections */
.cta-section {
    background: var(--gradient-cta-band);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--color-text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Chat Bubbles */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-bubble.user {
    align-self: flex-start;
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.chat-bubble.ai {
    align-self: flex-end;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: var(--color-text-primary);
}

/* Responsive Utilities */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: block;
    }
}

.hidden-desktop {
    display: block;
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none;
    }
}

/* Success Page */
.success-page {
    padding: 4rem 0;
    background: var(--color-bg-page);
    min-height: 60vh;
}

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

.success-icon {
    margin-bottom: 2rem;
}

.checkmark {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.success-content h1 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.success-content h2 {
    color: var(--color-text-accent);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.next-steps {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.next-steps h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
}

.contact-info {
    background: var(--color-bg-muted);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.25rem 0;
    color: var(--color-text-secondary);
}

.success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-buttons .btn {
    min-width: 150px;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Spacing Utilities */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Focus States for Accessibility */
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--color-text-accent);
    outline-offset: 2px;
}