/* =============================================
   TO THE POINT SOFTWARE — Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a3556;
  --blue:    #0e7ac4;
  --sky:     #38bdf8;
  --green:   #d4e827;
  --green-d: #bbd019;
  --bg:      #f0f4f8;
  --white:   #ffffff;
  --slate:   #475569;
  --dark:    #0f172a;
  --border:  #e2e8f0;
  --radius:  10px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --transition: .22s ease;
  --max-w:   1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .72rem 1.6rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: var(--green-d); color: var(--navy); }

.btn-outline   { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-blue      { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #0b68a8; }

.btn-login {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.55);
  color: var(--white);
  padding: .55rem 1.2rem;
  font-size: .88rem;
}
.btn-login:hover { background: rgba(255,255,255,.22); }

/* --- Navigation --- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.22);
}

.navbar .container {
  display: flex; align-items: center;
  height: 68px; gap: 1.5rem;
}

.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand .brand-icon {
  width: 38px; height: 38px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
}
.nav-brand .brand-icon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nav-brand .brand-text { color: var(--white); }
.nav-brand .brand-text span { display: block; }
.nav-brand .brand-name  { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.nav-brand .brand-tagline { font-size: .68rem; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: .5px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500;
  padding: .45rem .8rem; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,.1);
}

.nav-login { margin-left: .75rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 26px; height: 20px; background: none; border: none;
  cursor: pointer; margin-left: auto; padding: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1d4ed8 60%, #0369a1 100%);
  color: var(--white); padding: 110px 0 90px; overflow: hidden;
  position: relative;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: .35rem 1rem; font-size: .8rem;
  color: var(--sky); font-weight: 600; letter-spacing: .3px;
  margin-bottom: 1.4rem;
}
.hero-badge::before { content: '●'; font-size: .55rem; color: var(--green); filter: brightness(.85); }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero p  { font-size: 1.12rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 520px; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-card-wrap {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px; padding: 2rem;
  backdrop-filter: blur(8px);
  width: 100%; max-width: 380px;
}
.hero-card-wrap h3 { color: var(--sky); margin-bottom: 1.2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .8px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-item {
  background: rgba(255,255,255,.08); border-radius: 10px; padding: 1rem;
  text-align: center;
}
.stat-item .stat-num { font-size: 1.9rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-item .stat-label { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: .3rem; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .label {
  display: inline-block; background: #e0f2fe; color: var(--blue);
  font-size: .78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: .3rem .9rem; border-radius: 100px;
  margin-bottom: .85rem;
}
.section-header h2 { margin-bottom: .75rem; color: var(--navy); }
.section-header p  { color: var(--slate); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* --- Product Cards --- */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card.featured { border-top-color: var(--green); }
.product-card.core     { border-top-color: var(--blue); }
.product-card.web      { border-top-color: var(--sky); }

.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.card-icon.green { background: #d1fae5; }
.card-icon.blue  { background: #dbeafe; }
.card-icon.sky   { background: #e0f2fe; }
.card-icon.orange{ background: #fef3c7; }
.card-icon.purple{ background: #ede9fe; }

.product-card h3 { color: var(--navy); margin-bottom: .6rem; }
.product-card p  { color: var(--slate); font-size: .94rem; flex: 1; margin-bottom: 1.2rem; }
.product-card .tag {
  display: inline-block; font-size: .73rem; font-weight: 600;
  background: var(--bg); color: var(--slate); padding: .2rem .65rem;
  border-radius: 100px; margin-right: .35rem; margin-bottom: .35rem;
}

/* --- Features / Why Us --- */
.features-bg { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.feature-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--bg); border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow); }
.feature-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--white);
}
.feature-item h3 { color: var(--navy); margin-bottom: .35rem; font-size: 1.05rem; }
.feature-item p  { color: var(--slate); font-size: .92rem; }

/* --- Integrations --- */
.integrations-list {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
}
.integration-pill {
  display: flex; align-items: center; gap: .75rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: .75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  font-weight: 600; color: var(--navy); font-size: .95rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.integration-pill:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.integration-pill .pill-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* --- Industries --- */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.industry-card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  text-align: center; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.industry-card .ind-icon { font-size: 2.4rem; margin-bottom: .85rem; }
.industry-card h3 { color: var(--navy); margin-bottom: .5rem; }
.industry-card p  { color: var(--slate); font-size: .9rem; }

/* --- CTA Banner --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy), #1d4ed8);
  color: var(--white); text-align: center; padding: 80px 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #1d4ed8);
  color: var(--white); padding: 72px 0 60px; text-align: center;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* --- Contact form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { color: var(--slate); margin-bottom: 1.75rem; }
.contact-detail  { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.2rem; }
.contact-detail .cd-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-detail .cd-text strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); }
.contact-detail .cd-text a, .contact-detail .cd-text span { color: var(--navy); font-weight: 600; }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,122,196,.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- About page --- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.about-intro p { color: var(--slate); margin-bottom: 1rem; }
.about-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.num-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem; text-align: center;
}
.num-card .big { font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; }
.num-card .lbl { color: var(--slate); font-size: .88rem; margin-top: .4rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.value-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem;
}
.value-card .vc-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { color: var(--navy); margin-bottom: .5rem; }
.value-card p  { color: var(--slate); font-size: .92rem; }

/* --- Solutions page --- */
.sol-section { border-bottom: 1px solid var(--border); padding-bottom: 3rem; margin-bottom: 3rem; }
.sol-section:last-child { border-bottom: none; }
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sol-grid.reverse { direction: rtl; }
.sol-grid.reverse > * { direction: ltr; }
.sol-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; padding: .3rem .85rem;
  border-radius: 100px; margin-bottom: .85rem;
}
.sol-badge.green  { background: #d1fae5; color: #065f46; }
.sol-badge.blue   { background: #dbeafe; color: #1e40af; }
.sol-badge.sky    { background: #e0f2fe; color: #0369a1; }
.sol-badge.orange { background: #fef3c7; color: #92400e; }
.sol-badge.purple { background: #ede9fe; color: #5b21b6; }
.sol-section h2 { color: var(--navy); margin-bottom: .75rem; font-size: 1.6rem; }
.sol-section p  { color: var(--slate); margin-bottom: 1.2rem; }
.sol-list { display: flex; flex-direction: column; gap: .6rem; }
.sol-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  color: var(--slate); font-size: .95rem;
}
.sol-list li::before { content: '✓'; color: var(--blue); font-weight: 800; flex-shrink: 0; margin-top: .08rem; }
.sol-visual {
  background: linear-gradient(135deg, var(--navy), #1d4ed8);
  border-radius: 16px; padding: 2.5rem; color: var(--white);
  min-height: 260px; display: flex; flex-direction: column; justify-content: center;
}
.sol-visual h4 { color: var(--sky); font-size: .85rem; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 1rem; }
.sol-visual ul { display: flex; flex-direction: column; gap: .6rem; }
.sol-visual ul li {
  display: flex; align-items: center; gap: .6rem;
  color: rgba(255,255,255,.85); font-size: .9rem;
}
.sol-visual ul li::before { content: '→'; color: var(--sky); }

/* --- Footer --- */
.footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-icon-lg {
  width: 46px; height: 46px; border-radius: 10px;
  overflow: hidden; margin-bottom: .85rem;
}
.footer-brand .brand-icon-lg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.footer-brand p { font-size: .9rem; margin-top: .6rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: .88rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 1.1rem; }
.footer-col a  { display: block; font-size: .9rem; margin-bottom: .55rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--sky); }
.footer-col .footer-contact span { display: block; font-size: .9rem; margin-bottom: .6rem; }
.footer-col .footer-contact a    { display: inline; font-size: .9rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: .82rem; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--sky); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .industries-grid{ grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .about-intro    { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .nav-links, .nav-login { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 1rem 1.5rem 1.5rem;
    flex-direction: column; gap: .25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .nav-login.open { display: flex; padding: 0 1.5rem 1.5rem; background: var(--navy); position: absolute; top: auto; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .navbar .container { flex-wrap: wrap; height: auto; padding-top: .85rem; padding-bottom: .85rem; }

  .hero-grid    { grid-template-columns: 1fr; }
  .hero-visual  { display: none; }
  .hero         { padding: 72px 0 60px; }

  .products-grid  { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .industries-grid{ grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .sol-grid, .sol-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .about-numbers  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .about-numbers { grid-template-columns: 1fr; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: none; }
