/*
Theme Name: TürkFinans Digital Bank
Author: TürkFinans
Version: 2.1
*/

/* =====================================================
   ROOT VARIABLES
===================================================== */
:root {
  --bg-dark:#0b1220;
  --bg-darker:#020617;
  --bg-light:#f4f6fb;
  --brand:#2563eb;
  --brand-soft:#93c5fd;
  --brand-dark:#1e40af;
  --success:#16a34a;
  --danger:#dc2626;
  --warning:#f59e0b;
  --text-dark:#0f172a;
  --text-muted:#6b7280;
  --radius:18px;
  --shadow:0 25px 70px rgba(0,0,0,.08);
}

* { box-sizing:border-box; }

body {
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont;
  background:var(--bg-light);
  color:var(--text-dark);
  line-height:1.55;
}

/* =====================================================
   HEADER / NAV
===================================================== */
header {
  background:linear-gradient(180deg,#0b1220,#0f172a);
  padding:18px 0;
}

nav {
  max-width:1200px;
  margin:auto;
  padding:0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

nav a {
  color:#c7d2fe;
  margin-left:18px;
  font-weight:500;
  text-decoration:none;
}

nav a:hover {
  color:#fff;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height:88vh;
  background:
    radial-gradient(1200px 500px at 80% -10%,rgba(37,99,235,.35),transparent),
    linear-gradient(180deg,#0b1220,#0f172a);
  color:#fff;
  display:flex;
  align-items:center;
}

.hero-inner {
  max-width:1200px;
  margin:auto;
  padding:60px 30px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
}

.hero h1 {
  font-size:54px;
  line-height:1.05;
  margin:0 0 18px;
}

.hero p {
  font-size:18px;
  color:#cbd5f5;
  max-width:520px;
}

.hero-actions {
  margin-top:32px;
}

.hero-actions button {
  padding:14px 26px;
  border-radius:14px;
  font-size:15px;
  border:none;
  cursor:pointer;
}

.hero-actions button:first-child {
  background:var(--brand);
  color:#fff;
}

.hero-actions button:last-child {
  background:#111827;
  color:#fff;
}

/* =====================================================
   FLOATING VISUAL
===================================================== */
.hero-visual {
  position:relative;
}

.hero-visual img {
  width:100%;
  border-radius:22px;
  box-shadow:0 40px 120px rgba(0,0,0,.5);
  animation:float 8s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-18px); }
}

/* =====================================================
   SECTIONS
===================================================== */
.section {
  padding:90px 30px;
}

.section.dark {
  background:#0f172a;
  color:#e5e7eb;
}

.section h2 {
  font-size:36px;
  margin-bottom:16px;
}

.section p {
  max-width:720px;
  color:var(--text-muted);
}

/* =====================================================
   GRID / CARDS
===================================================== */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:28px;
  margin-top:50px;
}

.card {
  background:#fff;
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow);
}

.dark .card {
  background:#111827;
  color:#e5e7eb;
}

.card h3 {
  margin-top:0;
}

.card img {
  width:48px;
  margin-bottom:14px;
}

/* =====================================================
   CAROUSEL
===================================================== */
.carousel {
  overflow:hidden;
  position:relative;
}

.carousel-track {
  display:flex;
  width:400%;
  animation:slide 26s infinite linear;
}

.carousel-slide {
  width:100%;
  flex-shrink:0;
}

.carousel-slide img {
  width:100%;
  height:520px;
  object-fit:cover;
}

@keyframes slide {
  0% { transform:translateX(0); }
  25% { transform:translateX(-100%); }
  50% { transform:translateX(-200%); }
  75% { transform:translateX(-300%); }
  100% { transform:translateX(0); }
}

/* =====================================================
   APP MOCKUPS
===================================================== */
.app-mockups {
  position:relative;
  height:420px;
  margin:120px auto;
  max-width:900px;
}

.app-mockups img {
  position:absolute;
  width:260px;
  border-radius:30px;
  box-shadow:0 40px 120px rgba(0,0,0,.45);
  animation:float 7s ease-in-out infinite;
}

.app-mockups img:nth-child(1) {
  left:0;
  top:60px;
}

.app-mockups img:nth-child(2) {
  left:200px;
  top:0;
  z-index:2;
}

.app-mockups img:nth-child(3) {
  left:420px;
  top:80px;
}

/* =====================================================
   FX TICKER
===================================================== */
.fx-ticker {
  white-space:nowrap;
  overflow:hidden;
  background:var(--bg-darker);
  color:#e5e7eb;
  padding:14px 0;
}

.fx-track {
  display:inline-block;
  padding-left:100%;
  animation:fxmove 18s linear infinite;
}

@keyframes fxmove {
  100% { transform:translateX(-100%); }
}

/* =====================================================
   STATS
===================================================== */
.stats {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:30px;
  margin:120px auto;
  max-width:1000px;
}

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

.stats h2 {
  font-size:42px;
  margin:0;
  color:var(--brand-dark);
}

/* =====================================================
   FRAUD / SECURITY FLOW
===================================================== */
.fraud {
  display:flex;
  justify-content:center;
  gap:24px;
  margin:120px 0;
}

.fraud span {
  padding:14px 22px;
  background:#fee2e2;
  border-radius:20px;
  animation:pulse 2s infinite;
}

@keyframes pulse {
  0%,100%{opacity:.6}
  50%{opacity:1}
}

/* =====================================================
   TIMELINE
===================================================== */
.timeline {
  max-width:900px;
  margin:120px auto;
  border-left:4px solid var(--brand);
  padding-left:40px;
}

.timeline div {
  margin-bottom:34px;
  background:#eef2ff;
  padding:24px;
  border-radius:14px;
}

/* =====================================================
   FORMS (LOGIN / REGISTER / ACCOUNT)
===================================================== */
form {
  background:#fff;
  padding:32px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  max-width:520px;
}

form input,
form select,
form button {
  width:100%;
  padding:14px;
  margin-bottom:14px;
  border-radius:12px;
  border:1px solid #e5e7eb;
}

form button {
  background:var(--brand);
  color:#fff;
  border:none;
  font-size:15px;
}

/* =====================================================
   TABLES (LEDGER, SAVINGS, TRANSFERS)
===================================================== */
table {
  width:100%;
  border-collapse:collapse;
}

table th,
table td {
  padding:14px;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
}

table th {
  color:var(--text-muted);
  font-weight:600;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background:#020617;
  color:#9ca3af;
  padding:50px 30px;
  text-align:center;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width:900px) {
  .hero-inner {
    grid-template-columns:1fr;
  }
  .app-mockups {
    height:auto;
  }
  .app-mockups img {
    position:relative;
    margin:20px auto;
    display:block;
  }
}

/* ===== FOOTER ===== */
.tf-footer {
  background:#020617;
  color:#9ca3af;
  padding:70px 30px 40px;
}

.tf-footer-inner {
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
}

.tf-footer h3 {
  color:#fff;
  font-size:22px;
  margin-bottom:14px;
}

.tf-footer h4 {
  color:#e5e7eb;
  font-size:15px;
  margin-bottom:12px;
}

.tf-footer p {
  font-size:14px;
  line-height:1.6;
}

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

.tf-footer li {
  font-size:14px;
  margin-bottom:8px;
}

.tf-footer a {
  color:#c7d2fe;
  text-decoration:none;
}

.tf-footer a:hover {
  text-decoration:underline;
}

.tf-footer-divider {
  margin:50px auto 30px;
  max-width:1200px;
  height:1px;
  background:rgba(255,255,255,.08);
}

.tf-footer-bottom {
  text-align:center;
  font-size:13px;
}

.tf-footer-legal {
  margin-top:8px;
  font-size:12px;
  color:#6b7280;
}

/* ===== HEADER ===== */
.tf-header {
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(15,23,42,.85);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.tf-header-inner {
  max-width:1200px;
  margin:auto;
  padding:16px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.tf-logo a {
  color:#fff;
  font-size:22px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:.4px;
}

.tf-nav a {
  color:#c7d2fe;
  margin-left:22px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
}

.tf-nav a:hover {
  color:#fff;
}

/* BUTTONS */
.btn-primary {
  background:#2563eb;
  color:#fff !important;
  padding:10px 16px;
  border-radius:12px;
}

.btn-primary:hover {
  background:#1d4ed8;
}

.btn-outline {
  border:1px solid rgba(255,255,255,.25);
  padding:10px 16px;
  border-radius:12px;
}

/* MOBILE */
@media(max-width:768px) {
  .tf-nav a {
    margin-left:14px;
  }
}

/* ===== MAIN CONTENT ===== */
.tf-main {
  min-height:70vh;
}

/* CONTENT CARD */
.tf-content {
  max-width:900px;
  margin:auto;
}

.tf-content-header h1 {
  font-size:36px;
  margin-bottom:20px;
}

/* BODY TEXT */
.tf-content-body {
  font-size:16px;
  line-height:1.7;
  color:#334155;
}

.tf-content-body p {
  margin-bottom:18px;
}

/* EMPTY STATE */
.tf-empty {
  max-width:700px;
  margin:60px auto;
  text-align:center;
}

.tf-empty h2 {
  font-size:28px;
  margin-bottom:10px;
}

.tf-empty p {
  color:#6b7280;
}

.hero {
  position: relative;
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual img {
  pointer-events: none;
}

form,
.tf-form,
.tf-login,
.tf-register,
.tf-verify {
  position: relative;
  z-index: 10;
}

form {
  background:#fff;
  position: relative;
  z-index: 20;
}
