
/*
Theme Name: Tin Innovations iOS Theme
Theme URI: https://tininnovations.com
Author: Tin Innovations + NAVAIA
Description: Glassy, iOS-style WordPress theme for Tin Innovations with AI-native branding.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tininnovations-ios
*/

:root {
  --bg-dark: #050816;
  --bg-light: #f5f7fb;
  --bg-section: #070b1f;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.08);
  --text-main: #f9fbff;
  --text-muted: #a5afc7;
  --text-dark: #111322;
  --pill-bg: rgba(10, 132, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --card-bg: rgba(10, 10, 30, 0.82);
  --card-bg-soft: rgba(13, 16, 40, 0.92);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #1c2450 0, #050816 45%, #020410 100%);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 8, 22, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.logo-text {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: #e4e8ff;
  padding-bottom: 4px;
  opacity: 0.9;
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.main-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  padding: 4.25rem 0 3.25rem;
  background:
    radial-gradient(circle at 20% 0, rgba(10, 132, 255, 0.24) 0, transparent 45%),
    radial-gradient(circle at 80% 0, rgba(94, 92, 255, 0.2) 0, transparent 42%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 3.3rem;
  }
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.2vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 22, 55, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.4rem;
  color: var(--text-muted);
  backdrop-filter: blur(18px);
}

.hero-highlight::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.35);
}

.hero-copy {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #d5ddff;
  backdrop-filter: blur(18px);
}

.hero-card {
  background: var(--card-bg);
  border-radius: 1.6rem;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(26px) saturate(150%);
}

.hero-card-title {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hero-card-metric {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.hero-card-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.76rem;
}

.hero-card-tags span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 6, 18, 0.92);
  color: #d8e0ff;
  backdrop-filter: blur(16px);
}

/* GENERIC SECTION */

.section {
  padding: 3.7rem 0;
  background: radial-gradient(circle at top right,
              rgba(94, 92, 255, 0.22) 0,
              transparent 46%),
              var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-title-block h2 {
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.section-title-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.section-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 24rem;
  text-align: right;
}

/* AI GRID */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

@media (max-width: 1024px) {
  .ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ai-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ai-card {
  background: var(--card-bg-soft);
  border-radius: 1.25rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 190px;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
  backdrop-filter: blur(22px) saturate(150%);
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8);
  border-color: rgba(10, 132, 255, 0.6);
  background: rgba(13, 20, 60, 0.98);
}

.ai-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.ai-title {
  font-size: 1.02rem;
  font-weight: 600;
}

.ai-body {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ai-tech-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.ai-tech-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(4, 6, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d3deff;
}

/* STACKS SECTION */

.stacks-section {
  background:
    radial-gradient(circle at 10% 0, rgba(10, 132, 255, 0.2) 0, transparent 50%),
    #06081b;
  padding: 3.7rem 0 3.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 1.6rem;
  margin-top: 2.1rem;
}

@media (max-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stack-item {
  text-align: center;
}

.stack-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-main);
  text-decoration: none;
  padding: 1.15rem 0.9rem;
  border-radius: 1.25rem;
  background: rgba(9, 11, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.16s ease-out,
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
  backdrop-filter: blur(20px);
}

.stack-link:hover {
  background: rgba(10, 132, 255, 0.16);
  border-color: rgba(10, 132, 255, 0.55);
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stack-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff 0, #c4d1ff 16%, #11152f 55%, #050818 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.stack-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.stack-label {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* PAGE LAYOUTS */

.page-hero {
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.page-intro {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.page-content {
  padding: 2.4rem 0 3.4rem;
}

/* FOOTER */

.site-footer {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 2.6rem 0 2.1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-small {
  font-size: 0.85rem;
  color: #606470;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  font-size: 0.88rem;
  padding-left: 0;
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a {
  color: #282b33;
}

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

.footer-contact a {
  color: #282b33;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  color: #777b88;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
