:root{
  --bg:#0b1c2d;
  --bg2:#0f2f4a;
  --blue:#1e88e5;
  --soft:#f4f6f8;
  --text:#1f2937;
  --muted:#6b7280;
  --card:#ffffff;
  --border: rgba(255,255,255,0.10);
  --shadow: 0 14px 34px rgba(0,0,0,0.10);
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden; /* global güvenlik */
}

body{
  font-family: Arial, Helvetica, sans-serif;
  color:var(--text);
  line-height:1.6;
  background:#fff;
}

img{ max-width:100%; height:auto; display:block; }

/* Container */
.container{
  width:96%;
  max-width:1440px;
  margin:0 auto;
  padding:0 18px;
}

/* HEADER */
.header{
  background:var(--bg);
  color:#fff;
  padding:16px 0;
  border-bottom:1px solid var(--border);
}

.header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
}

.brand-text{ line-height:1.05; }
.brand-name{ font-size:19px; font-weight:900; }
.brand-sub{ font-size:12px; opacity:0.88; font-weight:700; }

.sfmat-pill{
  margin-left:10px;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color:#fff;
  font-weight:900;
  letter-spacing:0.6px;
  white-space:nowrap;
}

/* Logo */
.logo-clip{
  width:96px;
  height:72px;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,0.06);
}
.logo-clip img{
  height:96px;
  width:auto;
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  opacity:0.92;
}
.nav a:hover{ opacity:1; text-decoration:underline; }

/* BUTTONS */
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  border:1px solid rgba(255,255,255,0.55);
  color:#fff;
}
.btn:hover{ border-color:#fff; }
.btn.primary{ background:var(--blue); border:none; }
.btn.primary:hover{ filter:brightness(0.92); }
.btn.ghost{ background:transparent; border:1px solid rgba(255,255,255,0.25); }
.btn.ghost:hover{ border-color: rgba(255,255,255,0.55); }

/* Light button (sayfa içi) */
.btn.light{
  background: transparent;
  border: 1px solid rgba(11,28,45,0.35);
  color: #0b1c2d;
}
.btn.light:hover{
  border-color: rgba(11,28,45,0.65);
}

/* HERO */
.hero{
  background:
    radial-gradient(1200px 400px at 70% 30%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, #0b1c2d 0%, #081522 100%);
  color:#fff;
  padding:96px 0 70px;
  overflow:hidden; /* taşma kes */
}

/* Desktop hero grid: yazı geniş + görsel dar */
.hero-grid{
  display:grid;
  grid-template-columns: 62% 38%;
  gap:52px;
  align-items:center;
}

/* HERO typografi */
.hero h1{
  margin:0 0 18px 0;
  font-size: clamp(42px, 4.6vw, 60px);
  line-height:1.06;
  letter-spacing:-0.4px;
}
.hero p{
  margin:0 0 18px 0;
  font-size:19px;
  opacity:0.95;
  max-width: 820px; /* satır uzasın, yığın olmasın */
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
}
.hero-actions .btn.primary{
  padding:12px 20px;
  border-radius:12px;
  box-shadow: 0 12px 26px rgba(30,136,229,0.28);
}
.hero-actions .btn.ghost{
  padding:12px 20px;
  border-radius:12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}
.hero-actions .btn.ghost:hover{
  background: rgba(255,255,255,0.10);
}

.micro-proof{
  margin-top:14px;
  font-size:0.85rem;
  opacity:0.75;
  letter-spacing:.4px;
}

/* Hero visual: daralt + okunur tut */
.hero-visual{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:16px;
  overflow:hidden;
  max-width: 560px; /* <-- RESMİ DARALT (senin istediğin) */
  width:100%;
  margin-left:auto;
}
.hero-visual img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  /* okunabilirlik */
  filter: contrast(1.12) brightness(1.05);
}

/* SECTIONS */
.section{ padding:58px 0; }
.section.soft{ background: var(--soft); }

.section-head{ margin-bottom:18px; }
.section-head h2{
  margin:0 0 6px 0;
  font-size:28px;
  letter-spacing:-0.2px;
}
.section-head p{
  margin:0;
  color:var(--muted);
  max-width:980px;
}

/* CARDS */
.cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
  margin-top:18px;
}
.hero-copy{
  max-width: 680px !important;   /* yazı bloğu daralır */
}

.hero p{
  max-width: 680px !important;
}
.hero-visual{
  max-width: 620px !important;   /* görsel büyür */
}

.hero-visual img{
  max-height: 340px !important;  /* daha büyük görünür */
  object-fit: contain !important;
}
.hero-visual{
  margin-left: auto !important;
}
/* =========================================================
   HERO FINAL CLEAN FIX (DESKTOP ODAKLI)
   ========================================================= */

/* HERO GRID – SADECE METİN ÜSTTE */
.hero-grid{
  display: block !important;
}

/* HERO METİN ALANI */
.hero-copy{
  max-width: 1100px;              /* BAŞLIK YAYILSIN */
}

/* BAŞLIK: SATIRI TAMAMLASIN */
.hero-copy h1{
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.4px;
  max-width: 100%;
}

/* AÇIKLAMA METNİ */
.hero-copy p{
  max-width: 720px;
  font-size: 18px;
  opacity: 0.95;
}

/* SAĞ GÖRSEL KOLONU KAPAT */
.hero-visual{
  display: none !important;
}
/* =========================================================
   HERO ALT GÖRSEL – ORTALI & KONTROLLÜ
   ========================================================= */

.hero-visual-under{
  display: block;
  max-width: 900px;      /* BÜYÜT ama devasa olmasın */
  margin: 40px auto 0;   /* ORTALA */
  border-radius: 18px;
  overflow: hidden;
}

.hero-visual-under img{
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1100px){
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

.triple{
  background:#fff;
  border-radius:16px;
  padding:18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(0,0,0,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.triple:hover{
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.triple h3{ margin:0 0 8px 0; font-size:18px; letter-spacing:-0.2px; }
.triple p{ margin:0; color:#374151; }

/* Card image */
.card-image{
  margin-top:14px;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.card-image img,
.card-image svg{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

/* Kart hizalama (Gezilebilir Başlangıç) */
.cards.three .triple{
  display:flex;
  flex-direction:column;
}
.cards.three .triple p{ flex:1; }

/* Demo */
.video-box{
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
  padding:18px;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-weight:900;
}

/* FOOTER */
.footer{
  background:var(--bg);
  color:#fff;
  padding:26px 0 16px;
  margin-top:16px;
}
.footer-mini{
  margin-top:12px;
  opacity:0.70;
  font-size:12px;
  letter-spacing:1px;
}

/* Forms */
input, textarea{
  width:100%;
  padding:12px;
  margin-bottom:10px;
  border:1px solid #d8dde3;
  border-radius:12px;
  font-size:16px;
}

/* ===== MOBILE ===== */
@media (max-width: 980px){
  .header-flex{ flex-direction: column; align-items:flex-start; }
  .nav{ justify-content:flex-start; width:100%; }

  .cards{ grid-template-columns: 1fr; }

  /* Hero mobil tek kolon */
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy{ text-align:center; }
  .hero-actions{ justify-content:center; }

  /* Mobilde görsel taşmasın */
  .hero-visual{
    max-width: 100%;
    margin-left:0;
  }
}

/* Ana sayfa kart görselleri biraz daha küçük dursun */
.home-page .card-image img,
.home-page .card-image svg{
  height:180px;
}

/* SFMAT sayfasında bazı görsellerin yazısını kırpmak istersen */
.sfmat-page .card-image img{
  object-position: center 60%;
}
/* === HERO RESET: ESKİ ÇALIŞAN DÜZEN (TEXT LEFT + IMAGE RIGHT) === */
.hero-grid{
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: 34px !important;
  align-items: center !important;
}

.hero-visual{
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

.hero-visual img{
  width: 100% !important;
  max-width: 640px !important;
  height: auto !important;
  display: block !important;
  transform: none !important;
  filter: none !important;
}

/* Mobilde alt alta (eski stabil) */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-copy{ text-align: center; }
  .hero-actions{ justify-content: center; }
  .hero-visual img{ max-width: 100% !important; }
}
.video-box video{
  width:100%;
  max-width:960px;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:14px;
}
.video-box{
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
  padding:18px;
}

.video-box .demo-video{
  width:100%;
  max-width:960px;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:14px;
}

/* =========================================================
   AI OPERATING SYSTEM PAGE + 4 CARD HOME GRID
   ========================================================= */

@media (min-width: 1100px){
  .cards.four{
    grid-template-columns: repeat(4, 1fr);
  }
}

.cards.four .triple{
  display:flex;
  flex-direction:column;
}

.cards.four .triple p{
  flex:1;
}

.cards.four .card-image img,
.cards.four .card-image svg{
  height:170px;
}

.ai-hero-panel{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:22px;
  align-items:center;
  background:#fff;
  border-radius:18px;
  padding:24px;
  box-shadow: var(--shadow);
  border:1px solid rgba(0,0,0,0.04);
  margin-bottom:10px;
}

.ai-hero-panel h3{
  margin:0 0 10px 0;
  font-size:24px;
  letter-spacing:-0.3px;
}

.ai-hero-panel p{
  margin:0 0 10px 0;
  color:#374151;
}

.ai-hero-image{
  border-radius:14px;
  overflow:hidden;
  background:#f4f6f8;
}

.ai-hero-image img{
  width:100%;
  height:280px;
  object-fit:cover;
}

.ai-steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
  margin-top:16px;
}

.ai-steps span{
  display:block;
  background:#fff;
  border:1px solid rgba(11,28,45,0.12);
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  color:#0b1c2d;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.ai-os-page .card-image img{
  height:220px;
  object-fit:cover;
}

@media (max-width: 980px){
  .ai-hero-panel{
    grid-template-columns: 1fr;
  }

  .ai-hero-image img{
    height:auto;
  }

  .ai-steps{
    grid-template-columns: 1fr 1fr;
  }

  .cards.four{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .ai-steps{
    grid-template-columns: 1fr;
  }
}
.ai-steps span{
  position: relative;
  padding-left: 18px;
}

.ai-steps span::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #1e88e5;
  border-radius: 50%;
}
.ai-steps span{
  transition: all 0.25s ease;
  cursor: default;
}

.ai-steps span:hover{
  background: #0b1c2d;
  color: #fff;
  transform: translateY(-2px);
}
.ai-os-page .card-image{
  background:#071626;
}

.ai-os-page .card-image img{
  height:220px !important;
  object-fit:contain !important;
  padding:0 !important;
  background:#071626;
}
.ai-hero-image img{
  height:280px !important;
  object-fit:contain !important;
  background:#071626;
}
/* Ana sayfa kart görselleri kırpılmasın */
.home-page .card-image{
  background:#071626;
}

.home-page .card-image img,
.home-page .card-image svg{
  height:180px !important;
  object-fit:contain !important;
  background:#071626;
}
/* Ana sayfa kart görselleri tam görünsün */
.home-page .cards.four .card-image{
  background:#071626 !important;
  height:auto !important;
  overflow:hidden !important;
}

.home-page .cards.four .card-image img,
.home-page .cards.four .card-image svg{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  display:block !important;
}
/* NAV: tek satır + dil butonları sağda sabit */
.nav{
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.nav-links{
  display: inline-flex;
  gap: 14px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;              /* overflow çalışsın */
  white-space: nowrap;       /* linkler alt satıra düşmesin */
  overflow-x: auto;          /* taşarsa yatay scroll */
  overflow-y: hidden;
  scrollbar-width: none;     /* Firefox gizle */
}
.nav-links::-webkit-scrollbar{ display:none; } /* Chrome gizle */

.nav-lang{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* TR/EN butonlar button olduğu için default griyi kapat */
.nav-lang .btn{
  background: transparent;
  cursor: pointer;
}
/* FINAL NAV FIX: TR/EN her zaman sağda, asla alta düşmez */
.nav{
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.nav-links{
  display: inline-flex !important;
  gap: 14px !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar{ display:none; }

.nav-lang{
  display: inline-flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin-left: 12px !important;
}

/* TR/EN görünürlük (kontrast) */
.nav-lang .btn{
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.38) !important;
  color: #fff !important;
  cursor: pointer !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
}
.nav-lang .btn:hover{
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.60) !important;
}
/* MOBILE FIX: menüler görünsün (iOS'ta scroll gizlenmesin diye wrap) */
@media (max-width: 980px){
  .nav{
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .nav-links{
    white-space: normal !important;     /* tek satır zorlamayı kaldır */
    overflow-x: visible !important;     /* yatay scroll'u kapat */
    flex-wrap: wrap !important;         /* linkler alt alta/yan yana dizilsin */
    width: 100% !important;
  }

  .nav-lang{
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: flex-end !important; /* TR/EN sağa */
  }
}



