@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
.tc-home{--home-bg:#080e20;--home-panel:#101e34;--home-soft:#152946;--home-text:#edf7ff;--home-muted:#b7c9df;--home-line:#47708d;--home-accent:#89eaff;background:radial-gradient(ellipse at 77% 0,#173152 0,transparent 39%),var(--home-bg);color:var(--home-text);font-family:"Space Grotesk",system-ui,sans-serif}
[lang=ar] .tc-home{font-family:Cairo,system-ui,sans-serif}
.tc-home bdi,.tc-home input,.tc-home output{font-family:Inter,system-ui,sans-serif}
html[data-tc-theme=light] .tc-home{--home-bg:#f2f7ff;--home-panel:#fff;--home-soft:#e5efff;--home-text:#132543;--home-muted:#334e69;--home-line:#a8bedc;--home-accent:#14598a}
.tc-home :is(h1,h2,h3,p,small,.vendor,.featured-bottom,.text-link){color:inherit}
.tc-home :is(.eyebrow,.text-link,.tc-home-link){color:var(--home-accent)}
.tc-home :is(.v2-section,.featured-section,.tools-section,.disclosure-section){background:transparent;color:var(--home-text)}
.tc-home :is(.card,.category-tile,.featured-card,.tool-card,.disclosure-strip,.tc-calc){background:var(--home-panel);color:var(--home-text);border:1px solid var(--home-line);border-radius:18px}
.tc-home :is(.card,.category-tile,.featured-card,.tool-card):hover{border-color:var(--home-accent)}
.tc-home-lead{padding-block:clamp(40px,8vw,100px) 30px}
.tc-home-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(24px,6vw,70px);align-items:center}
.tc-home-intro h1{font-size:clamp(2.2rem,5.3vw,4.7rem);line-height:1.12;letter-spacing:-.045em;margin:0 0 16px}
[lang=ar] .tc-home-intro h1{letter-spacing:0;line-height:1.35}
.tc-home-intro p,.tc-calc p{color:var(--home-muted);font-size:1.12rem}
.tc-home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}
.tc-home .btn-ghost,.tc-home-toggle{color:var(--home-text);background:var(--home-panel);border:1px solid var(--home-line)}
.tc-home-toggle{font:inherit;border-radius:10px;padding:9px 13px;cursor:pointer}
.tc-cloud-panel{position:relative;border:1px solid #43dfff93;border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 50% 25%,#175672,#081525 70%);box-shadow:0 16px 60px #35ceff26}
.tc-cloud-scene{position:relative;isolation:isolate;min-height:clamp(235px,35vw,345px);display:grid;place-items:center;background:linear-gradient(#b3b8ff16 1px,transparent 1px),linear-gradient(90deg,#b3b8ff16 1px,transparent 1px);background-size:30px 30px}
.tc-orbit{position:absolute;width:75%;height:45%;border:1px solid #90caff60;border-radius:50%;rotate:-12deg}
.tc-orbit:nth-child(2){rotate:12deg}
.tc-cloud-shape{position:relative;width:130px;height:44px;border-radius:60px;background:#9beaff;box-shadow:0 0 45px #38d5ffb0}
.tc-cloud-shape::before,.tc-cloud-shape::after{content:"";position:absolute;background:inherit;border-radius:50%;bottom:10px}
.tc-cloud-shape::before{width:58px;height:58px;left:14px}.tc-cloud-shape::after{width:69px;height:69px;right:12px}
.tc-server{position:absolute;top:58%;width:clamp(28px,8vw,75px);height:15px;border-radius:5px;border:1px solid #50d6ff;background:linear-gradient(90deg,#163c59,#258bac);box-shadow:0 7px #092c45,0 9px #38a9d5,0 15px #092c45,0 17px #38a9d5}
.tc-server-start{left:9%;transform:skewY(-12deg)}.tc-server-end{right:9%;transform:skewY(12deg)}
.tc-cloud-chip{position:absolute;padding:6px 11px;border:1px solid #7f96ee;border-radius:9px;background:#182d51;color:#a6ecff;font-weight:700}
.tc-chip-code{left:13%;top:19%}.tc-chip-grid{right:15%;top:24%}.tc-chip-star{right:24%;bottom:16%}
.tc-motion-control{position:absolute;inset:auto 9px 9px auto;background:#11243b;color:#e8f7ff;border-color:#4b779b;font-size:.82rem}
.tc-home .deal-card:nth-child(1),.tc-home .category-tile:nth-child(4n+1){border-block-start:3px solid #59d8ff}
.tc-home .deal-card:nth-child(2),.tc-home .category-tile:nth-child(4n+2){border-block-start:3px solid #a2ea79}
.tc-home .deal-card:nth-child(3),.tc-home .category-tile:nth-child(4n+3){border-block-start:3px solid #baadff}
.tc-home .category-tile:nth-child(4n){border-block-start:3px solid #ffb99a}
.tc-calc{padding:clamp(16px,4vw,34px)}
.tc-calc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.tc-calc fieldset{min-width:0;margin:0;padding:12px;border:1px solid var(--home-line);border-radius:12px;background:var(--home-soft)}
.tc-calc label{display:block;color:var(--home-muted);font-size:.92rem;margin-bottom:9px}
.tc-calc input{display:block;box-sizing:border-box;width:100%;background:var(--home-panel);color:var(--home-text);border:1px solid var(--home-line);border-radius:8px;padding:7px 10px;margin-top:4px;direction:ltr}
.tc-calc dl{margin-bottom:0}.tc-calc dt{font-size:.88rem}.tc-calc dd{font-weight:700;color:var(--home-accent);margin:0 0 6px}.tc-calc output{direction:ltr;unicode-bidi:isolate}
@media(max-width:780px){.tc-home-layout,.tc-calc-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.tc-cloud-shape,.tc-cloud-chip{animation:tc-cloud-bob 5s ease-in-out infinite}.tc-chip-grid{animation-delay:-1.8s}.tc-chip-star{animation-delay:-3s}.tc-motion-paused :is(.tc-cloud-shape,.tc-cloud-chip){animation-play-state:paused}@keyframes tc-cloud-bob{50%{translate:0 -8px}}}
@media(prefers-reduced-motion:reduce){.tc-motion-control{display:none}}
/* Keep card titles readable on both homepage themes. */
.tc-home .category-tile > strong {
  color: var(--home-text);
  font-weight: 700;
}

.tc-home .tc-editorial-card {
  color: var(--home-text);
  background: var(--home-panel);
  border-color: var(--home-line);
}
@media (max-width: 600px) {
  .tc-home .v2-section { padding-block: 32px; }
}
/* Use a light surface behind all introductory text in light mode. */
html[data-tc-theme=light] .tc-home {
  background: var(--home-bg);
}

/* The weekly card supplies inline surface colors, so match them to the active theme. */
.tc-home .tc-weekly {
  background: var(--home-panel) !important;
  color: var(--home-text) !important;
  border-color: var(--home-line) !important;
}
.tc-home .tc-weekly > .eyebrow,
.tc-home .tc-weekly a:not(.btn) {
  color: var(--home-accent);
}
