:root {
    --navy: #0a1628;
    --navy-light: #111d32;
    --navy-mid: #1a2942;
    --teal: #00d4aa;
    --teal-dark: #00a884;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.25);
    --font: 'Inter', system-ui, sans-serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer; transition: all .25s;
}
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,170,.35); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--navy); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h); background: rgba(10,22,40,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img, .site-logo { width: auto; object-fit: contain; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--gray-300); font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav a:hover { color: var(--teal); }
.header-cta { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: .3s; }

@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--navy); color: var(--white); padding-top: var(--header-h); overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0,212,170,.12) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,168,132,.08) 0%, transparent 50%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,212,170,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,212,170,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 4rem 0; }
.hero-badge {
    display: inline-block; padding: .4rem 1rem; background: rgba(0,212,170,.15);
    color: var(--teal); border-radius: 100px; font-size: .8rem; font-weight: 600;
    margin-bottom: 1.5rem; border: 1px solid rgba(0,212,170,.25);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -.02em; }
.hero-sub { font-size: 1.15rem; color: var(--gray-300); margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.hero-scroll span { display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.3); border-radius: 12px; position: relative; }
.hero-scroll span::after { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--teal); border-radius: 2px; animation: scroll 2s infinite; }
@keyframes scroll { 0%,100%{opacity:1;top:8px} 50%{opacity:.3;top:16px} }

/* Sections */
.section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.section-tag { display: inline-block; color: var(--teal-dark); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: .75rem; }
.section-head h2 em { font-style: normal; color: var(--teal-dark); }
.section-head p { color: var(--gray-500); font-size: 1.05rem; }

/* Services */
.services { background: var(--gray-100); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--white); padding: 2rem; border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.06); transition: all .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,212,170,.2); }
.service-icon { width: 52px; height: 52px; background: linear-gradient(135deg, rgba(0,212,170,.15), rgba(0,168,132,.08)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--teal-dark); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.service-card p { color: var(--gray-500); font-size: .95rem; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.project-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid rgba(0,0,0,.06); transition: all .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-mid); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.project-placeholder span { font-size: 3rem; font-weight: 800; color: var(--teal); opacity: .5; }
.project-badge { position: absolute; top: 1rem; left: 1rem; background: var(--teal); color: var(--navy); font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: 100px; }
.project-body { padding: 1.5rem; }
.project-cat { font-size: .75rem; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .05em; }
.project-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: .35rem 0 .5rem; }
.project-body p { color: var(--gray-500); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content h2 { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.about-content p { color: var(--gray-500); font-size: 1.05rem; line-height: 1.8; }
.about-stats { display: grid; gap: 1rem; }
.stat-card { background: var(--navy); color: var(--white); padding: 2rem; border-radius: var(--radius); text-align: center; border: 1px solid rgba(0,212,170,.15); }
.stat-card strong { display: block; font-size: 2.5rem; font-weight: 800; color: var(--teal); margin-bottom: .25rem; }
.stat-card span { font-size: .9rem; color: var(--gray-300); }

/* CTA */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: var(--white); padding: 4rem 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.cta-inner p { color: var(--gray-300); margin-bottom: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { padding: 1.5rem; background: var(--gray-100); border-radius: var(--radius); }
.contact-icon { width: 44px; height: 44px; background: rgba(0,212,170,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--teal-dark); margin-bottom: .75rem; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: .85rem; color: var(--gray-500); margin-bottom: .25rem; }
.contact-card a, .contact-card p { font-weight: 600; color: var(--navy); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: .85rem 1rem; border: 1px solid #e2e8f0; border-radius: 8px;
    font-family: var(--font); font-size: .95rem; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); }

/* Footer */
.site-footer { background: var(--navy); color: var(--gray-300); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img, .footer-logo { width: auto; object-fit: contain; margin-bottom: .5rem; }
.footer-brand p { margin-top: 1rem; font-size: .9rem; max-width: 280px; }
.footer-grid h4 { color: var(--white); font-size: .9rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { font-size: .9rem; transition: color .2s; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem; text-align: center; font-size: .85rem; }

/* Project Detail */
.project-detail { padding-top: var(--header-h); }
.project-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; background: var(--navy) center/cover; padding: 3rem 0; }
.project-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.95) 0%, rgba(10,22,40,.4) 100%); }
.project-hero .container { position: relative; z-index: 1; color: var(--white); }
.back-link { display: inline-block; color: var(--teal); font-size: .9rem; margin-bottom: 1rem; }
.project-hero h1 { font-size: 2.5rem; font-weight: 800; margin: .5rem 0; }
.project-client { color: var(--gray-300); }
.project-detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; padding: 3rem 1.5rem 5rem; max-width: 1200px; margin: 0 auto; }
.project-lead { font-size: 1.2rem; color: var(--gray-700); font-weight: 500; margin-bottom: 1.5rem; }
.project-desc { color: var(--gray-500); line-height: 1.8; margin-bottom: 2rem; }
.project-gallery h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; }
.gallery-grid figcaption { font-size: .85rem; color: var(--gray-500); padding: .5rem 0; }
.sidebar-box { background: var(--gray-100); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; }
.sidebar-box h4 { font-size: .85rem; color: var(--gray-500); margin-bottom: .75rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-tags span { background: var(--white); border: 1px solid #e2e8f0; padding: .3rem .75rem; border-radius: 100px; font-size: .8rem; font-weight: 500; }
.project-sidebar .btn { margin-bottom: .75rem; }

/* Project Showcase (ürün tanıtım) */
.project-showcase .project-hero-showcase {
    min-height: 420px;
    background: linear-gradient(135deg, var(--navy) 0%, #0d2847 50%, var(--navy-mid) 100%);
    align-items: center;
    padding: 4.5rem 0 3.5rem;
}
.project-hero-tagline {
    max-width: 640px;
    font-size: 1.15rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin: 1rem 0 1.75rem;
}
.project-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.showcase-intro { padding: 4rem 0; background: var(--white); }
.showcase-intro-inner { max-width: 1100px; margin: 0 auto; }
.showcase-lead {
    font-size: 1.35rem;
    line-height: 1.75;
    color: var(--gray-700);
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.5rem;
    font-weight: 500;
}
.showcase-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.showcase-highlight-card {
    background: var(--gray-100);
    border: 1px solid rgba(0,0,0,.05);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.showcase-highlight-icon { font-size: 1.75rem; display: block; margin-bottom: .75rem; }
.showcase-highlight-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: .5rem; }
.showcase-highlight-card p { font-size: .875rem; color: var(--gray-500); line-height: 1.55; }

.showcase-sections { background: #f8fafc; }
.showcase-row { padding: 4rem 0; }
.showcase-row-alt { background: var(--white); }
.showcase-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}
.showcase-row-reverse .showcase-row-grid { direction: rtl; }
.showcase-row-reverse .showcase-row-grid > * { direction: ltr; }
.showcase-frame {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(10,22,40,.12);
    border: 1px solid rgba(0,0,0,.06);
    background: var(--white);
}
.showcase-frame img { width: 100%; height: auto; display: block; }
.showcase-index {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--teal-dark);
    margin-bottom: .75rem;
}
.showcase-copy h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.showcase-copy p { color: var(--gray-500); line-height: 1.85; font-size: 1.02rem; }

.showcase-demo-band {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 4rem 0;
}
.showcase-demo-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.showcase-demo-text h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.showcase-demo-text p { color: var(--gray-300); line-height: 1.75; margin-bottom: 1.25rem; }
.showcase-demo-list { list-style: none; padding: 0; }
.showcase-demo-list li { padding: .35rem 0; color: var(--gray-300); font-size: .95rem; }
.showcase-demo-list a { color: var(--teal); }
.showcase-demo-cta { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }

.page-hero-compact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 5rem 0 3rem;
    margin-top: var(--header-h);
    text-align: center;
}
.page-hero-compact h1 { font-size: 2.25rem; margin-bottom: .75rem; }
.page-hero-compact p { color: var(--gray-300); max-width: 640px; margin: 0 auto; }

.downloads-page {
    padding: 3rem 0 5rem;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}
.downloads-empty { text-align: center; color: var(--gray-500); padding: 3rem 0; }
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
    gap: 1.75rem;
    align-items: start;
}
.downloads-project-card {
    background: var(--white);
    border: 1px solid rgba(10, 22, 40, .08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    scroll-margin-top: calc(var(--header-h) + 1rem);
}
.downloads-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.downloads-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    border-bottom: 1px solid rgba(0, 212, 170, .15);
}
.downloads-card-title { min-width: 0; }
.downloads-card-header h2 {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
    margin: .35rem 0 .5rem;
    line-height: 1.25;
}
.downloads-card-header p {
    color: var(--gray-300);
    font-size: .9rem;
    line-height: 1.55;
}
.downloads-cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--teal);
    background: rgba(0, 212, 170, .12);
    border: 1px solid rgba(0, 212, 170, .25);
    padding: .2rem .55rem;
    border-radius: 999px;
}
.downloads-detail-link {
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal);
    white-space: nowrap;
    transition: color .2s;
}
.downloads-detail-link:hover { color: var(--white); }
.downloads-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.downloads-section + .downloads-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f7;
}
.downloads-section-label {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .85rem;
}
.downloads-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.downloads-section-icon svg { width: 15px; height: 15px; }
.downloads-section-icon-install {
    background: rgba(0, 212, 170, .12);
    color: var(--teal-dark);
}
.downloads-section-icon-update {
    background: rgba(10, 22, 40, .08);
    color: var(--navy);
}
.downloads-files-grid { display: flex; flex-direction: column; gap: .75rem; }
.download-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1rem;
    background: var(--gray-100);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .2s, background .2s;
}
.download-file-card:hover {
    background: #f8fafc;
    border-color: rgba(0, 212, 170, .35);
}
.download-file-install { border-left: 3px solid var(--teal); }
.download-file-update { border-left: 3px solid var(--navy-mid); }
.download-file-main {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    min-width: 0;
    flex: 1;
}
.download-file-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-dark);
}
.download-file-icon svg { width: 20px; height: 20px; }
.download-file-info { min-width: 0; }
.download-file-info strong {
    display: block;
    color: var(--navy);
    font-size: .92rem;
    margin-bottom: .3rem;
    line-height: 1.35;
}
.download-file-info p {
    font-size: .82rem;
    color: var(--gray-500);
    margin-top: .35rem;
    line-height: 1.45;
}
.download-file-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
    font-size: .78rem;
    color: var(--gray-500);
}
.download-version {
    display: inline-block;
    padding: .12rem .5rem;
    background: rgba(0, 212, 170, .14);
    color: var(--teal-dark);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.download-file-btn { flex-shrink: 0; min-width: 5.5rem; }

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .contact-grid, .project-detail-body, .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .showcase-highlights { grid-template-columns: repeat(2, 1fr); }
    .showcase-row-grid, .showcase-demo-inner { grid-template-columns: 1fr; gap: 2rem; }
    .showcase-row-reverse .showcase-row-grid { direction: ltr; }
}
@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .downloads-card-header { flex-direction: column; align-items: stretch; }
    .downloads-detail-link { align-self: flex-start; }
    .download-file-card { flex-direction: column; align-items: stretch; }
    .download-file-btn { width: 100%; }
}
