/* TALIM Network — lightweight, fast, founder-first UI */
/* Feel: clean like startupteams.co; visual energy like f1soft.com */

:root{
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --text: #0b1020;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 20px 60px rgba(11,16,32,.10);

  --grad: linear-gradient(135deg, #2F80ED 0%, #7B61FF 55%, #00C2A8 100%);
  --accent: #2F80ED;
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

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

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

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{ left:10px; }

.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(226,232,240,.75);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:-.02em;
}
.brand img{
  width:40px;
  height:40px;
}
.brand span{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand small{
  font-weight:600;
  color:var(--muted);
  letter-spacing:0;
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  font-weight:650;
}
.nav-links a{
  color:var(--muted);
  text-decoration:none;
}
.nav-links a:hover{
  color:var(--text);
  text-decoration:none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:750;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(11,16,32,.06);
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  border:0;
  background: var(--grad);
  color:#fff;
}
.btn-ghost{
  background:transparent;
  border:1px solid var(--border);
  box-shadow:none;
}

.mobile-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:750;
}

.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--border);
}
.hero::before{
  content:"";
  position:absolute;
  inset:-200px -200px auto -200px;
  height:560px;
  background:
    radial-gradient(600px 280px at 15% 20%, rgba(47,128,237,.22), transparent 60%),
    radial-gradient(560px 260px at 65% 15%, rgba(123,97,255,.18), transparent 60%),
    radial-gradient(700px 320px at 80% 35%, rgba(0,194,168,.18), transparent 60%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  padding:62px 0 40px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:start;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(226,232,240,.9);
  background:rgba(255,255,255,.8);
  color:var(--muted);
  font-weight:700;
  width:fit-content;
}
.pill .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--grad);
}
h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing:-.03em;
}
.lede{
  margin:0 0 18px;
  color:var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}
.hero-ctas{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.hero-card{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.hero-card h3{
  margin:0 0 6px;
  letter-spacing:-.02em;
}
.hero-card p{
  margin:0;
  color:var(--muted);
}
.kpis{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:12px;
  margin-top:16px;
}
.kpi{
  border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius-sm);
  padding:12px;
  background:#fff;
}
.kpi strong{
  display:block;
  font-size:1.15rem;
  letter-spacing:-.02em;
}
.kpi span{
  color:var(--muted);
  font-weight:650;
  font-size:.92rem;
}

.section{
  padding:58px 0;
}
.section.alt{ background: var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section h2{
  margin:0 0 10px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height:1.15;
  letter-spacing:-.03em;
}
.section p.section-lede{
  margin:0 0 26px;
  color:var(--muted);
  max-width: 70ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}
.card{
  grid-column: span 6;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow:0 10px 30px rgba(11,16,32,.06);
}
.card h3{
  margin:0 0 6px;
  letter-spacing:-.02em;
}
.card p{
  margin:0 0 12px;
  color:var(--muted);
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 14px;
}
.badge{
  font-size:.88rem;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight:700;
}
.card .actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin-top:18px;
}
.step{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
}
.step .num{
  width:36px;
  height:36px;
  border-radius:12px;
  background: var(--grad);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:-.02em;
  margin-bottom:10px;
}
.step strong{
  display:block;
  margin-bottom:6px;
  letter-spacing:-.02em;
}
.step p{
  margin:0;
  color:var(--muted);
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:18px;
}
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
}
.panel h3{ margin:0 0 10px; letter-spacing:-.02em; }
.panel ul{ margin:0; padding-left: 18px; color:var(--muted); }
.panel li{ margin:6px 0; }

.faq{
  margin-top:14px;
}
details{
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:14px 16px;
  background:#fff;
}
details + details{ margin-top:10px; }
summary{
  cursor:pointer;
  font-weight:800;
  letter-spacing:-.01em;
}
details p{
  margin:10px 0 0;
  color:var(--muted);
}

.footer{
  padding:26px 0 34px;
  color:var(--muted);
  font-weight:650;
}
.footer .footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.footer a{ color:var(--muted); }
.footer a:hover{ color:var(--text); text-decoration:none; }
.footer small{ display:block; margin-top:8px; }
.social-links{
  display:flex;
  gap:12px;
  margin-top:16px;
  align-items:center;
}
.social-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:8px;
  background:var(--surface-2);
  color:var(--muted);
  transition: all 0.2s ease;
}
.social-icon:hover{
  background:var(--accent);
  color:#fff;
  transform:translateY(-2px);
}
.social-icon svg{
  width:18px;
  height:18px;
}
.linktree-link{
  font-size: 0.85rem;
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  margin-left:4px;
}
.linktree-link:hover{
  color:var(--accent);
  text-decoration:underline;
}

.page-hero{
  padding:44px 0 22px;
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(47,128,237,.18), transparent 60%),
    radial-gradient(560px 260px at 70% 0%, rgba(0,194,168,.16), transparent 60%);
}
.page-hero h1{ margin:10px 0 8px; }
.breadcrumbs{
  color:var(--muted);
  font-weight:700;
  font-size:.95rem;
}
.breadcrumbs a{ color:var(--muted); }

.role-layout{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}
.role-layout .panel{
  position:sticky;
  top:92px;
  height:fit-content;
}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius: var(--radius);
}
.table th, .table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{
  background: var(--surface);
  text-align:left;
  font-weight:800;
}
.table td{
  color:var(--muted);
  font-weight:650;
}
.table tr:last-child td{ border-bottom:0; }

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .role-layout{ grid-template-columns:1fr; }
  .role-layout .panel{ position:relative; top:auto; }
}
@media (max-width: 720px){
  .nav-links{ display:none; }
  .mobile-toggle{ display:inline-flex; }
  .nav-links.open{
    display:flex;
    position:absolute;
    left:0;
    right:0;
    top:64px;
    padding:14px 20px;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid var(--border);
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .kpis{ grid-template-columns:1fr; }
  .grid{ gap:12px; }
  .card{ grid-column: span 12; }
  .steps{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; }
}
/* Floating Video Bubble */
.video-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1000;
  border: 3px solid #fff;
  background: #000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.video-bubble:hover {
  transform: scale(1.1);
}

.video-bubble iframe {
  width: 300%; /* Scale up to ensure it covers the circle without black bars */
  height: 100%;
  margin-left: -100%; /* Center the scaled video */
  pointer-events: none;
}

@media (max-width: 720px) {
  .video-bubble {
    width: 110px;
    height: 110px;
    bottom: 16px;
    right: 16px;
  }
}

/* Video Modal */
.video-modal {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 800px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1001;
  display: none;
  border: 1px solid var(--border);
  transform-origin: bottom right;
  animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.video-modal.active {
  display: block;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 2;
  transition: background 0.2s;
}

.video-modal-close:hover {
  background: rgba(0,0,0,0.8);
}

@media (max-width: 480px) {
  .video-modal {
    width: 320px;
    bottom: 16px;
    right: 16px;
  }
}
